AppIndex.proto 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. syntax = "proto3";
  2. package room.v2;
  3. option go_package = "v2";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service AppIndex {
  6. /** 全部列表数据
  7. *
  8. */
  9. rpc getAllList (AppIndexGetAllListReq) returns (AppIndexGetAllListResp);
  10. /** 全部模块基础信息 5.35网关层调用
  11. *
  12. */
  13. rpc getBaseMInfoList (AppIndexGetBaseMInfoListReq) returns (AppIndexGetBaseMInfoListResp);
  14. /** 根据moduleId查common房间列表(for app-interface 5.35+), 包括运营分区、一级分区、推荐(通用RoomList类的)
  15. *
  16. */
  17. rpc getRoomListByIds (AppIndexGetRoomListByIdsReq) returns (AppIndexGetRoomListByIdsResp);
  18. /** 根据moduleId查common房间列表(for app-interface 5.35+), 包括分区入口(通用picList类的)
  19. *
  20. */
  21. rpc getPicListByIds (AppIndexGetPicListByIdsReq) returns (AppIndexGetPicListByIdsResp);
  22. /** 首页banner
  23. *
  24. */
  25. rpc getIndexBanner (AppIndexGetIndexBannerReq) returns (AppIndexGetIndexBannerResp);
  26. /** 全部列表原始数据 for app-interface 5.33+
  27. *
  28. */
  29. rpc getAllRawList (AppIndexGetAllRawListReq) returns (AppIndexGetAllRawListResp);
  30. /** 5.32+获取多个分区房间列表-对推荐第一刷去重
  31. *
  32. */
  33. rpc getMultiRoomList (AppIndexGetMultiRoomListReq) returns (AppIndexGetMultiRoomListResp);
  34. /** 获取活动信息
  35. * go网关层调
  36. */
  37. rpc getActivityCard (AppIndexGetActivityCardReq) returns (AppIndexGetActivityCardResp);
  38. }
  39. message AppIndexGetAllListReq {
  40. // 平台
  41. string platform = 1 [(gogoproto.jsontag) = "platform"];
  42. // 设备
  43. string device = 2 [(gogoproto.jsontag) = "device"];
  44. // 分辨率
  45. string scale = 3 [(gogoproto.jsontag) = "scale"];
  46. // 分辨率
  47. int64 build = 4 [(gogoproto.jsontag) = "build"];
  48. // 模块唯一标识,不传表示获取所有模块
  49. int64 module_id = 5 [(gogoproto.jsontag) = "module_id"];
  50. // 关注第几刷
  51. int64 relation_page = 6 [(gogoproto.jsontag) = "relation_page"];
  52. }
  53. message AppIndexGetAllListResp {
  54. // code
  55. int64 code = 1 [(gogoproto.jsontag) = "code"];
  56. // msg
  57. string msg = 2 [(gogoproto.jsontag) = "msg"];
  58. //
  59. Data data = 3 [(gogoproto.jsontag) = "data"];
  60. message ModuleInfo {
  61. // 模块id
  62. int64 id = 1 [(gogoproto.jsontag) = "id"];
  63. // 标题
  64. string title = 2 [(gogoproto.jsontag) = "title"];
  65. // 图标
  66. string pic = 3 [(gogoproto.jsontag) = "pic"];
  67. // list数据类型 1: banner 2: 导航栏 3: 运营推荐分区-标准 4: 运营推荐分区-方 5:排行榜(小时榜) 6: 推荐主播-标准 7: 推荐主播-方 8:我的关注(用户相关) 9:一级分区-标准 10:一级分区-方 11: 活动卡片 12:常用标签推荐入口(用户相关) 13:常用标签推荐房间列表(用户相关) 14:大航海提示入口
  68. int64 type = 4 [(gogoproto.jsontag) = "type"];
  69. // 跳转链接
  70. string link = 5 [(gogoproto.jsontag) = "link"];
  71. // 该模块数据总数
  72. int64 count = 6 [(gogoproto.jsontag) = "count"];
  73. // 二级标题,目前只有小时榜才会返
  74. string sub_title = 7 [(gogoproto.jsontag) = "sub_title"];
  75. }
  76. message RoomList {
  77. // 房间id
  78. int64 roomid = 1 [(gogoproto.jsontag) = "roomid"];
  79. // 房间标题
  80. string title = 2 [(gogoproto.jsontag) = "title"];
  81. // 用户名
  82. string uname = 3 [(gogoproto.jsontag) = "uname"];
  83. // 在线人数
  84. int64 online = 4 [(gogoproto.jsontag) = "online"];
  85. // 封面,封面现在有3种:关键帧、封面图、秀场封面(正方形的),返回哪个由后端决定
  86. string cover = 5 [(gogoproto.jsontag) = "cover"];
  87. // 链接
  88. string link = 6 [(gogoproto.jsontag) = "link"];
  89. // 主播头像
  90. string face = 7 [(gogoproto.jsontag) = "face"];
  91. // 父分区id
  92. int64 area_v2_parent_id = 8 [(gogoproto.jsontag) = "area_v2_parent_id"];
  93. // 父分区名称
  94. string area_v2_parent_name = 9 [(gogoproto.jsontag) = "area_v2_parent_name"];
  95. // 二级分区id
  96. int64 area_v2_id = 10 [(gogoproto.jsontag) = "area_v2_id"];
  97. // 二级分区名
  98. string area_v2_name = 11 [(gogoproto.jsontag) = "area_v2_name"];
  99. // 秒开播放串 h264
  100. string play_url = 12 [(gogoproto.jsontag) = "play_url"];
  101. // 秒开播放串 h265
  102. string play_url_h265 = 13 [(gogoproto.jsontag) = "play_url_h265"];
  103. // 当前清晰度,清晰度 0:默认码率, 2:800 3:1500 4:原画
  104. int64 current_quality = 14 [(gogoproto.jsontag) = "current_quality"];
  105. // 当前拥有清晰度列表
  106. repeated int64 accept_quality = 15 [(gogoproto.jsontag) = "accept_quality"];
  107. // 横竖屏 0:横屏 1:竖屏 -1:异常情况
  108. int64 broadcast_type = 16 [(gogoproto.jsontag) = "broadcast_type"];
  109. // 新版角标-右上 默认为空 只能是文字!!!@古月 【5.29显示更新】:服务端还是吐右上(兼容老版),5.29显示在左上
  110. string pendent_ru = 17 [(gogoproto.jsontag) = "pendent_ru"];
  111. // 【5.29显示更新】:服务端还是吐右上,5.29客户端显示在左上,对应的背景图片
  112. string pendent_ru_pic = 18 [(gogoproto.jsontag) = "pendent_ru_pic"];
  113. // 新版移动端角标色值-右上
  114. string pendent_ru_color = 19 [(gogoproto.jsontag) = "pendent_ru_color"];
  115. // 推荐类型 1:人气 2:营收 3:运营强推 4:天马推荐(暂定)用于客户端打点
  116. int64 rec_type = 20 [(gogoproto.jsontag) = "rec_type"];
  117. // 当前房间pk_id,默认0 用于客户端打点
  118. int64 pk_id = 21 [(gogoproto.jsontag) = "pk_id"];
  119. }
  120. message ModuleList {
  121. //
  122. ModuleInfo module_info = 1 [(gogoproto.jsontag) = "module_info"];
  123. // 注意:可能是 PicList{id,pic,link,title},需要根据ModuleInfo里的type判断
  124. repeated RoomList list = 2 [(gogoproto.jsontag) = "list"];
  125. }
  126. message Data {
  127. // 客户端请求间隔 秒
  128. int64 interval = 1 [(gogoproto.jsontag) = "interval"];
  129. // 模块列表
  130. repeated ModuleList module_list = 2 [(gogoproto.jsontag) = "module_list"];
  131. }
  132. }
  133. message AppIndexGetBaseMInfoListReq {
  134. // 模块ID,不传获取所有
  135. int64 module_id = 1 [(gogoproto.jsontag) = "module_id"];
  136. }
  137. message AppIndexGetBaseMInfoListResp {
  138. // code
  139. int64 code = 1 [(gogoproto.jsontag) = "code"];
  140. // msg
  141. string msg = 2 [(gogoproto.jsontag) = "msg"];
  142. //
  143. repeated ModuleInfo data = 3 [(gogoproto.jsontag) = "data"];
  144. message ModuleInfo {
  145. // 模块id
  146. int64 id = 1 [(gogoproto.jsontag) = "id"];
  147. // 标题
  148. string title = 2 [(gogoproto.jsontag) = "title"];
  149. // 图标
  150. string pic = 3 [(gogoproto.jsontag) = "pic"];
  151. // list数据类型 1: banner 2: 导航栏 3: 运营推荐分区-标准 4: 运营推荐分区-方 5:排行榜(小时榜) 6: 推荐主播-标准 7: 推荐主播-方 8:我的关注(用户相关) 9:一级分区-标准 10:一级分区-方 11: 活动卡片 12:常用标签推荐入口(用户相关) 13:常用标签推荐房间列表(用户相关) 14:大航海提示入口
  152. int64 type = 4 [(gogoproto.jsontag) = "type"];
  153. // 跳转链接
  154. string link = 5 [(gogoproto.jsontag) = "link"];
  155. // 模块排序
  156. int64 sort = 6 [(gogoproto.jsontag) = "sort"];
  157. // 数量
  158. int64 count = 7 [(gogoproto.jsontag) = "count"];
  159. }
  160. }
  161. message AppIndexGetRoomListByIdsReq {
  162. // 模块ids
  163. repeated int64 ids = 1 [(gogoproto.jsontag) = "ids"];
  164. }
  165. message AppIndexGetRoomListByIdsResp {
  166. // code
  167. int64 code = 1 [(gogoproto.jsontag) = "code"];
  168. // msg
  169. string msg = 2 [(gogoproto.jsontag) = "msg"];
  170. //
  171. map<int64, RoomList> data = 3 [(gogoproto.jsontag) = "data"];
  172. message RoomInfo {
  173. // 房间id
  174. int64 roomid = 1 [(gogoproto.jsontag) = "roomid"];
  175. // 房间标题
  176. string title = 2 [(gogoproto.jsontag) = "title"];
  177. // 用户名
  178. string uname = 3 [(gogoproto.jsontag) = "uname"];
  179. // 在线人数
  180. int64 online = 4 [(gogoproto.jsontag) = "online"];
  181. // 封面,封面现在有3种:关键帧、封面图、秀场封面(正方形的),返回哪个由后端决定
  182. string cover = 5 [(gogoproto.jsontag) = "cover"];
  183. // 链接
  184. string link = 6 [(gogoproto.jsontag) = "link"];
  185. // 主播头像
  186. string face = 7 [(gogoproto.jsontag) = "face"];
  187. // 父分区id
  188. int64 area_v2_parent_id = 8 [(gogoproto.jsontag) = "area_v2_parent_id"];
  189. // 父分区名称
  190. string area_v2_parent_name = 9 [(gogoproto.jsontag) = "area_v2_parent_name"];
  191. // 二级分区id
  192. int64 area_v2_id = 10 [(gogoproto.jsontag) = "area_v2_id"];
  193. // 二级分区名
  194. string area_v2_name = 11 [(gogoproto.jsontag) = "area_v2_name"];
  195. // 秒开播放串 h264
  196. string play_url = 12 [(gogoproto.jsontag) = "play_url"];
  197. // 秒开播放串 h265
  198. string play_url_h265 = 13 [(gogoproto.jsontag) = "play_url_h265"];
  199. // 当前清晰度,清晰度 0:默认码率, 2:800 3:1500 4:原画
  200. int64 current_quality = 14 [(gogoproto.jsontag) = "current_quality"];
  201. // 当前拥有清晰度列表
  202. repeated int64 accept_quality = 15 [(gogoproto.jsontag) = "accept_quality"];
  203. // 横竖屏 0:横屏 1:竖屏 -1:异常情况
  204. int64 broadcast_type = 16 [(gogoproto.jsontag) = "broadcast_type"];
  205. // 新版角标-右上 默认为空 只能是文字!!!@古月 【5.29显示更新】:服务端还是吐右上(兼容老版),5.29显示在左上
  206. string pendent_ru = 17 [(gogoproto.jsontag) = "pendent_ru"];
  207. // 【5.29显示更新】:服务端还是吐右上,5.29客户端显示在左上,对应的背景图片
  208. string pendent_ru_pic = 18 [(gogoproto.jsontag) = "pendent_ru_pic"];
  209. // 新版移动端角标色值-右上
  210. string pendent_ru_color = 19 [(gogoproto.jsontag) = "pendent_ru_color"];
  211. // 推荐类型 1:人气 2:营收 3:运营强推 4:天马推荐(暂定)用于客户端打点
  212. int64 rec_type = 20 [(gogoproto.jsontag) = "rec_type"];
  213. // 当前房间pk_id,默认0 用于客户端打点
  214. int64 pk_id = 21 [(gogoproto.jsontag) = "pk_id"];
  215. }
  216. message RoomList {
  217. //
  218. repeated RoomInfo list = 1 [(gogoproto.jsontag) = "list"];
  219. }
  220. }
  221. message AppIndexGetPicListByIdsReq {
  222. // 模块ids
  223. repeated int64 ids = 1 [(gogoproto.jsontag) = "ids"];
  224. }
  225. message AppIndexGetPicListByIdsResp {
  226. // code
  227. int64 code = 1 [(gogoproto.jsontag) = "code"];
  228. // msg
  229. string msg = 2 [(gogoproto.jsontag) = "msg"];
  230. //
  231. map<int64, ItemList> data = 3 [(gogoproto.jsontag) = "data"];
  232. message Item {
  233. // 唯一标识id
  234. int64 id = 1 [(gogoproto.jsontag) = "id"];
  235. // 图片url
  236. string pic = 2 [(gogoproto.jsontag) = "pic"];
  237. // 跳转url
  238. string link = 3 [(gogoproto.jsontag) = "link"];
  239. // 图片标题
  240. string title = 4 [(gogoproto.jsontag) = "title"];
  241. }
  242. message ItemList {
  243. //
  244. repeated Item list = 1 [(gogoproto.jsontag) = "list"];
  245. }
  246. }
  247. message AppIndexGetIndexBannerReq {
  248. // 平台
  249. string platform = 1 [(gogoproto.jsontag) = "platform"];
  250. // 设备
  251. string device = 2 [(gogoproto.jsontag) = "device"];
  252. // 版本号
  253. int64 build = 3 [(gogoproto.jsontag) = "build"];
  254. }
  255. message AppIndexGetIndexBannerResp {
  256. // code
  257. int64 code = 1 [(gogoproto.jsontag) = "code"];
  258. // msg
  259. string msg = 2 [(gogoproto.jsontag) = "msg"];
  260. //
  261. Data data = 3 [(gogoproto.jsontag) = "data"];
  262. message Data {
  263. // banner id
  264. string id = 1 [(gogoproto.jsontag) = "id"];
  265. // 图片地址
  266. string pic = 2 [(gogoproto.jsontag) = "pic"];
  267. // 图片地址
  268. string img = 3 [(gogoproto.jsontag) = "img"];
  269. // 跳转链接
  270. string link = 4 [(gogoproto.jsontag) = "link"];
  271. // 标题
  272. string title = 5 [(gogoproto.jsontag) = "title"];
  273. // 第几帧
  274. string position = 6 [(gogoproto.jsontag) = "position"];
  275. // 权重
  276. string sort_num = 7 [(gogoproto.jsontag) = "sort_num"];
  277. // 注释
  278. string remark = 8 [(gogoproto.jsontag) = "remark"];
  279. }
  280. }
  281. message AppIndexGetAllRawListReq {
  282. // 模块唯一标识,不传表示获取所有模块
  283. int64 module_id = 1 [(gogoproto.jsontag) = "module_id"];
  284. }
  285. message AppIndexGetAllRawListResp {
  286. // code
  287. int64 code = 1 [(gogoproto.jsontag) = "code"];
  288. // msg
  289. string msg = 2 [(gogoproto.jsontag) = "msg"];
  290. //
  291. Data data = 3 [(gogoproto.jsontag) = "data"];
  292. message ModuleInfo {
  293. // 模块id
  294. int64 id = 1 [(gogoproto.jsontag) = "id"];
  295. // 标题
  296. string title = 2 [(gogoproto.jsontag) = "title"];
  297. // 图标
  298. string pic = 3 [(gogoproto.jsontag) = "pic"];
  299. // list数据类型 1: banner 2: 导航栏 3: 运营推荐分区-标准 4: 运营推荐分区-方 5:排行榜(小时榜) 6: 推荐主播-标准 7: 推荐主播-方 8:我的关注(用户相关) 9:一级分区-标准 10:一级分区-方 11: 活动卡片 12:常用标签推荐入口(用户相关) 13:常用标签推荐房间列表(用户相关) 14:大航海提示入口
  300. int64 type = 4 [(gogoproto.jsontag) = "type"];
  301. // 跳转链接
  302. string link = 5 [(gogoproto.jsontag) = "link"];
  303. // 该模块数据总数
  304. int64 count = 6 [(gogoproto.jsontag) = "count"];
  305. // 二级标题,目前只有小时榜才会返
  306. string sub_title = 7 [(gogoproto.jsontag) = "sub_title"];
  307. }
  308. message RoomList {
  309. // 房间id
  310. int64 roomid = 1 [(gogoproto.jsontag) = "roomid"];
  311. // 房间标题
  312. string title = 2 [(gogoproto.jsontag) = "title"];
  313. // 用户名
  314. string uname = 3 [(gogoproto.jsontag) = "uname"];
  315. // 在线人数
  316. int64 online = 4 [(gogoproto.jsontag) = "online"];
  317. // 封面,封面现在有3种:关键帧、封面图、秀场封面(正方形的),返回哪个由后端决定
  318. string cover = 5 [(gogoproto.jsontag) = "cover"];
  319. // 链接
  320. string link = 6 [(gogoproto.jsontag) = "link"];
  321. // 主播头像
  322. string face = 7 [(gogoproto.jsontag) = "face"];
  323. // 父分区id
  324. int64 area_v2_parent_id = 8 [(gogoproto.jsontag) = "area_v2_parent_id"];
  325. // 父分区名称
  326. string area_v2_parent_name = 9 [(gogoproto.jsontag) = "area_v2_parent_name"];
  327. // 二级分区id
  328. int64 area_v2_id = 10 [(gogoproto.jsontag) = "area_v2_id"];
  329. // 二级分区名
  330. string area_v2_name = 11 [(gogoproto.jsontag) = "area_v2_name"];
  331. // 秒开播放串
  332. string play_url = 12 [(gogoproto.jsontag) = "play_url"];
  333. // 当前清晰度,清晰度 0:默认码率, 2:800 3:1500 4:原画
  334. int64 current_quality = 13 [(gogoproto.jsontag) = "current_quality"];
  335. // 当前拥有清晰度列表
  336. repeated int64 accept_quality = 14 [(gogoproto.jsontag) = "accept_quality"];
  337. // 横竖屏 0:横屏 1:竖屏 -1:异常情况
  338. int64 broadcast_type = 15 [(gogoproto.jsontag) = "broadcast_type"];
  339. // 新版角标-左下 默认为空 只能是文字!!!@古月 5.32+废弃
  340. string pendent_ld = 16 [(gogoproto.jsontag) = "pendent_ld"];
  341. // 新版角标-右上 默认为空 只能是文字!!!@古月 【5.29显示更新】:服务端还是吐右上(兼容老版),5.29显示在左上
  342. string pendent_ru = 17 [(gogoproto.jsontag) = "pendent_ru"];
  343. // 【5.29显示更新】:服务端还是吐右上,5.29客户端显示在左上,对应的背景图片
  344. string pendent_ru_pic = 18 [(gogoproto.jsontag) = "pendent_ru_pic"];
  345. // 新版移动端角标色值-左下 5.32+废弃
  346. string pendent_ld_color = 19 [(gogoproto.jsontag) = "pendent_ld_color"];
  347. // 新版移动端角标色值-右上
  348. string pendent_ru_color = 20 [(gogoproto.jsontag) = "pendent_ru_color"];
  349. // 推荐类型 1:人气 2:营收 3:运营强推 4:天马推荐(暂定)用于客户端打点
  350. int64 rec_type = 21 [(gogoproto.jsontag) = "rec_type"];
  351. // 当前房间pk_id,默认0 用于客户端打点
  352. int64 pk_id = 22 [(gogoproto.jsontag) = "pk_id"];
  353. }
  354. message ModuleList {
  355. //
  356. ModuleInfo module_info = 1 [(gogoproto.jsontag) = "module_info"];
  357. // 注意:可能是 PicList{id,pic,link,title},需要根据ModuleInfo里的type判断
  358. repeated RoomList list = 2 [(gogoproto.jsontag) = "list"];
  359. }
  360. message Data {
  361. // 客户端请求间隔 秒
  362. int64 interval = 1 [(gogoproto.jsontag) = "interval"];
  363. // 模块列表
  364. repeated ModuleList module_list = 2 [(gogoproto.jsontag) = "module_list"];
  365. }
  366. }
  367. message AppIndexGetMultiRoomListReq {
  368. // 子分区id列表(传入格式:多个以英文逗号分隔)
  369. string area_ids = 1 [(gogoproto.jsontag) = "area_ids"];
  370. // 平台类型 web、ios、android
  371. string platform = 2 [(gogoproto.jsontag) = "platform"];
  372. }
  373. message AppIndexGetMultiRoomListResp {
  374. // code
  375. int64 code = 1 [(gogoproto.jsontag) = "code"];
  376. // msg
  377. string msg = 2 [(gogoproto.jsontag) = "msg"];
  378. // 房间信息map 分区id=>list
  379. repeated InfoList data = 3 [(gogoproto.jsontag) = "data"];
  380. message RoomList {
  381. // 房间id
  382. int64 roomid = 1 [(gogoproto.jsontag) = "roomid"];
  383. // 房间标题
  384. string title = 2 [(gogoproto.jsontag) = "title"];
  385. // 用户名
  386. string uname = 3 [(gogoproto.jsontag) = "uname"];
  387. // 在线人数
  388. int64 online = 4 [(gogoproto.jsontag) = "online"];
  389. // 封面,封面现在有3种:关键帧、封面图、秀场封面(正方形的),返回哪个由后端决定
  390. string cover = 5 [(gogoproto.jsontag) = "cover"];
  391. // 链接
  392. string link = 6 [(gogoproto.jsontag) = "link"];
  393. // 主播头像
  394. string face = 7 [(gogoproto.jsontag) = "face"];
  395. // 父分区id
  396. int64 area_v2_parent_id = 8 [(gogoproto.jsontag) = "area_v2_parent_id"];
  397. // 父分区名称
  398. string area_v2_parent_name = 9 [(gogoproto.jsontag) = "area_v2_parent_name"];
  399. // 二级分区id
  400. int64 area_v2_id = 10 [(gogoproto.jsontag) = "area_v2_id"];
  401. // 二级分区名
  402. string area_v2_name = 11 [(gogoproto.jsontag) = "area_v2_name"];
  403. // 秒开播放串 h264
  404. string play_url = 12 [(gogoproto.jsontag) = "play_url"];
  405. // 秒开播放串 h265
  406. string play_url_h265 = 13 [(gogoproto.jsontag) = "play_url_h265"];
  407. // 当前清晰度,清晰度 0:默认码率, 2:800 3:1500 4:原画
  408. int64 current_quality = 14 [(gogoproto.jsontag) = "current_quality"];
  409. // 当前拥有清晰度列表
  410. repeated int64 accept_quality = 15 [(gogoproto.jsontag) = "accept_quality"];
  411. // 横竖屏 0:横屏 1:竖屏 -1:异常情况
  412. int64 broadcast_type = 16 [(gogoproto.jsontag) = "broadcast_type"];
  413. // 新版角标-右上 默认为空 只能是文字!!!@古月 【5.29显示更新】:服务端还是吐右上(兼容老版),5.29显示在左上
  414. string pendent_ru = 17 [(gogoproto.jsontag) = "pendent_ru"];
  415. // 【5.29显示更新】:服务端还是吐右上,5.29客户端显示在左上,对应的背景图片
  416. string pendent_ru_pic = 18 [(gogoproto.jsontag) = "pendent_ru_pic"];
  417. // 新版移动端角标色值-右上
  418. string pendent_ru_color = 19 [(gogoproto.jsontag) = "pendent_ru_color"];
  419. // 推荐类型 1:人气 2:营收 3:运营强推 4:天马推荐(暂定)用于客户端打点
  420. int64 rec_type = 20 [(gogoproto.jsontag) = "rec_type"];
  421. // 当前房间pk_id,默认0 用于客户端打点
  422. int64 pk_id = 21 [(gogoproto.jsontag) = "pk_id"];
  423. }
  424. message InfoList {
  425. // 二级分区id
  426. int64 id = 1 [(gogoproto.jsontag) = "id"];
  427. // 房间列表
  428. repeated RoomList list = 2 [(gogoproto.jsontag) = "list"];
  429. }
  430. }
  431. message AppIndexGetActivityCardReq {
  432. // 活动模块ids
  433. repeated int64 ids = 1 [(gogoproto.jsontag) = "ids"];
  434. }
  435. message AppIndexGetActivityCardResp {
  436. // code
  437. int64 code = 1 [(gogoproto.jsontag) = "code"];
  438. // msg
  439. string msg = 2 [(gogoproto.jsontag) = "msg"];
  440. //
  441. Data data = 3 [(gogoproto.jsontag) = "data"];
  442. message Banner {
  443. //
  444. int64 aid = 1 [(gogoproto.jsontag) = "aid"];
  445. //
  446. string pic = 2 [(gogoproto.jsontag) = "pic"];
  447. //
  448. string title = 3 [(gogoproto.jsontag) = "title"];
  449. //
  450. string text = 4 [(gogoproto.jsontag) = "text"];
  451. //
  452. string pic_link = 5 [(gogoproto.jsontag) = "pic_link"];
  453. //
  454. string go_link = 6 [(gogoproto.jsontag) = "go_link"];
  455. //
  456. string button_text = 7 [(gogoproto.jsontag) = "button_text"];
  457. //
  458. int64 status = 8 [(gogoproto.jsontag) = "status"];
  459. //
  460. int64 sort = 9 [(gogoproto.jsontag) = "sort"];
  461. }
  462. message Room {
  463. //
  464. int64 is_live = 1 [(gogoproto.jsontag) = "is_live"];
  465. //
  466. int64 roomid = 2 [(gogoproto.jsontag) = "roomid"];
  467. //
  468. string title = 3 [(gogoproto.jsontag) = "title"];
  469. //
  470. string uname = 4 [(gogoproto.jsontag) = "uname"];
  471. //
  472. int64 online = 5 [(gogoproto.jsontag) = "online"];
  473. //
  474. string cover = 6 [(gogoproto.jsontag) = "cover"];
  475. //
  476. int64 area_v2_parent_id = 7 [(gogoproto.jsontag) = "area_v2_parent_id"];
  477. //
  478. int64 area_v2_id = 8 [(gogoproto.jsontag) = "area_v2_id"];
  479. //
  480. int64 sort = 9 [(gogoproto.jsontag) = "sort"];
  481. }
  482. message Av {
  483. //
  484. int64 avid = 1 [(gogoproto.jsontag) = "avid"];
  485. //
  486. string title = 2 [(gogoproto.jsontag) = "title"];
  487. //
  488. int64 view_count = 3 [(gogoproto.jsontag) = "view_count"];
  489. //
  490. int64 danmaku = 4 [(gogoproto.jsontag) = "danmaku"];
  491. //
  492. int64 duration = 5 [(gogoproto.jsontag) = "duration"];
  493. //
  494. string cover = 6 [(gogoproto.jsontag) = "cover"];
  495. //
  496. int64 sort = 7 [(gogoproto.jsontag) = "sort"];
  497. }
  498. message ActivityCard {
  499. //
  500. Banner card = 1 [(gogoproto.jsontag) = "card"];
  501. //
  502. repeated Room room = 2 [(gogoproto.jsontag) = "room"];
  503. //
  504. repeated Av av = 3 [(gogoproto.jsontag) = "av"];
  505. }
  506. message Data {
  507. //
  508. map<int64, ActivityCard> activity_card = 1 [(gogoproto.jsontag) = "activity_card"];
  509. }
  510. }