AppIndex.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. syntax = "proto3";
  2. package room.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service AppIndex {
  6. /** 根据moduleId查common房间列表
  7. *
  8. */
  9. rpc getListByIds (AppIndexGetListByIdsReq) returns (AppIndexGetListByIdsResp);
  10. }
  11. message AppIndexGetListByIdsReq {
  12. //
  13. repeated int64 ids = 1 [(gogoproto.jsontag) = "ids"];
  14. }
  15. message AppIndexGetListByIdsResp {
  16. // code
  17. int64 code = 1 [(gogoproto.jsontag) = "code"];
  18. // msg
  19. string msg = 2 [(gogoproto.jsontag) = "msg"];
  20. //
  21. map<int64, RoomList> data = 3 [(gogoproto.jsontag) = "data"];
  22. message RoomInfo {
  23. // 房间id
  24. int64 roomid = 1 [(gogoproto.jsontag) = "roomid"];
  25. // 房间标题
  26. string title = 2 [(gogoproto.jsontag) = "title"];
  27. // 用户名
  28. string uname = 3 [(gogoproto.jsontag) = "uname"];
  29. // 在线人数
  30. int64 online = 4 [(gogoproto.jsontag) = "online"];
  31. // 封面,封面现在有3种:关键帧、封面图、秀场封面(正方形的),返回哪个由后端决定
  32. string cover = 5 [(gogoproto.jsontag) = "cover"];
  33. // 链接
  34. string link = 6 [(gogoproto.jsontag) = "link"];
  35. // 主播头像
  36. string face = 7 [(gogoproto.jsontag) = "face"];
  37. // 父分区id
  38. int64 area_v2_parent_id = 8 [(gogoproto.jsontag) = "area_v2_parent_id"];
  39. // 父分区名称
  40. string area_v2_parent_name = 9 [(gogoproto.jsontag) = "area_v2_parent_name"];
  41. // 二级分区id
  42. int64 area_v2_id = 10 [(gogoproto.jsontag) = "area_v2_id"];
  43. // 二级分区名
  44. string area_v2_name = 11 [(gogoproto.jsontag) = "area_v2_name"];
  45. // 秒开播放串 h264
  46. string play_url = 12 [(gogoproto.jsontag) = "play_url"];
  47. // 秒开播放串 h265
  48. string play_url_h265 = 13 [(gogoproto.jsontag) = "play_url_h265"];
  49. // 当前清晰度,清晰度 0:默认码率, 2:800 3:1500 4:原画
  50. int64 current_quality = 14 [(gogoproto.jsontag) = "current_quality"];
  51. // 当前拥有清晰度列表
  52. repeated int64 accept_quality = 15 [(gogoproto.jsontag) = "accept_quality"];
  53. // 横竖屏 0:横屏 1:竖屏 -1:异常情况
  54. int64 broadcast_type = 16 [(gogoproto.jsontag) = "broadcast_type"];
  55. // 新版角标-右上 默认为空 只能是文字!!!@古月 【5.29显示更新】:服务端还是吐右上(兼容老版),5.29显示在左上
  56. string pendent_ru = 17 [(gogoproto.jsontag) = "pendent_ru"];
  57. // 【5.29显示更新】:服务端还是吐右上,5.29客户端显示在左上,对应的背景图片
  58. string pendent_ru_pic = 18 [(gogoproto.jsontag) = "pendent_ru_pic"];
  59. // 新版移动端角标色值-右上
  60. string pendent_ru_color = 19 [(gogoproto.jsontag) = "pendent_ru_color"];
  61. // 推荐类型 1:人气 2:营收 3:运营强推 4:天马推荐(暂定)用于客户端打点
  62. int64 rec_type = 20 [(gogoproto.jsontag) = "rec_type"];
  63. // 当前房间pk_id,默认0 用于客户端打点
  64. int64 pk_id = 21 [(gogoproto.jsontag) = "pk_id"];
  65. }
  66. message RoomList {
  67. //
  68. repeated RoomInfo list = 1 [(gogoproto.jsontag) = "list"];
  69. }
  70. }