App.proto 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. syntax = "proto3";
  2. package relation.v2;
  3. option go_package = "v2";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service App {
  6. /** 关注接口
  7. * 【粉版APP5.33 关注排序改版】App首页我的关注部分【全量数据】
  8. */
  9. rpc LiveHomePage (AppLiveHomePageReq) returns (AppLiveHomePageResp);
  10. }
  11. message AppLiveHomePageReq {
  12. // 页号
  13. int64 relation_page = 1 [(gogoproto.jsontag) = "relation_page"];
  14. }
  15. message AppLiveHomePageResp {
  16. //
  17. int64 code = 1 [(gogoproto.jsontag) = "code"];
  18. //
  19. string msg = 2 [(gogoproto.jsontag) = "msg"];
  20. //
  21. string message = 3 [(gogoproto.jsontag) = "message"];
  22. //
  23. Data data = 4 [(gogoproto.jsontag) = "data"];
  24. message Rooms {
  25. //
  26. int64 roomid = 1 [(gogoproto.jsontag) = "roomid"];
  27. //
  28. int64 uid = 2 [(gogoproto.jsontag) = "uid"];
  29. //
  30. string uname = 3 [(gogoproto.jsontag) = "uname"];
  31. //
  32. string face = 4 [(gogoproto.jsontag) = "face"];
  33. //
  34. string cover = 5 [(gogoproto.jsontag) = "cover"];
  35. //
  36. string title = 6 [(gogoproto.jsontag) = "title"];
  37. //
  38. int64 area = 7 [(gogoproto.jsontag) = "area"];
  39. //
  40. string live_time = 8 [(gogoproto.jsontag) = "live_time"];
  41. //
  42. string area_name = 9 [(gogoproto.jsontag) = "area_name"];
  43. //
  44. int64 area_v2_id = 10 [(gogoproto.jsontag) = "area_v2_id"];
  45. //
  46. string area_v2_name = 11 [(gogoproto.jsontag) = "area_v2_name"];
  47. //
  48. string area_v2_parent_name = 12 [(gogoproto.jsontag) = "area_v2_parent_name"];
  49. //
  50. int64 area_v2_parent_id = 13 [(gogoproto.jsontag) = "area_v2_parent_id"];
  51. //
  52. string live_tag_name = 14 [(gogoproto.jsontag) = "live_tag_name"];
  53. //
  54. int64 online = 15 [(gogoproto.jsontag) = "online"];
  55. //
  56. string play_url = 16 [(gogoproto.jsontag) = "play_url"];
  57. //
  58. string play_url_h265 = 17 [(gogoproto.jsontag) = "play_url_h265"];
  59. //
  60. repeated int64 accept_quality = 18 [(gogoproto.jsontag) = "accept_quality"];
  61. //
  62. int64 current_quality = 19 [(gogoproto.jsontag) = "current_quality"];
  63. //
  64. int64 pk_id = 20 [(gogoproto.jsontag) = "pk_id"];
  65. //
  66. int64 official_verify = 21 [(gogoproto.jsontag) = "official_verify"];
  67. //
  68. string link = 22 [(gogoproto.jsontag) = "link"];
  69. //
  70. int64 special_attention = 23 [(gogoproto.jsontag) = "special_attention"];
  71. //
  72. string pendent_ru = 24 [(gogoproto.jsontag) = "pendent_ru"];
  73. //
  74. string pendent_ru_pic = 25 [(gogoproto.jsontag) = "pendent_ru_pic"];
  75. //
  76. string pendent_ru_color = 26 [(gogoproto.jsontag) = "pendent_ru_color"];
  77. }
  78. message Data {
  79. //
  80. int64 total_count = 1 [(gogoproto.jsontag) = "total_count"];
  81. //
  82. int64 card_type = 2 [(gogoproto.jsontag) = "card_type"];
  83. //
  84. int64 big_card_type = 3 [(gogoproto.jsontag) = "big_card_type"];
  85. //
  86. string time_desc = 4 [(gogoproto.jsontag) = "time_desc"];
  87. //
  88. string uname_desc = 5 [(gogoproto.jsontag) = "uname_desc"];
  89. //
  90. string tags_desc = 6 [(gogoproto.jsontag) = "tags_desc"];
  91. //
  92. int64 relation_page = 7 [(gogoproto.jsontag) = "relation_page"];
  93. //
  94. repeated Rooms rooms = 8 [(gogoproto.jsontag) = "rooms"];
  95. }
  96. }