App.proto 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. syntax = "proto3";
  2. package relation.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service App {
  6. /** 关注接口
  7. * 【粉版APP5.31 关注排序改版】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. int64 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 playurl = 16 [(gogoproto.jsontag) = "playurl"];
  57. //
  58. repeated int64 accept_quality = 17 [(gogoproto.jsontag) = "accept_quality"];
  59. //
  60. int64 current_quality = 18 [(gogoproto.jsontag) = "current_quality"];
  61. //
  62. int64 pk_id = 19 [(gogoproto.jsontag) = "pk_id"];
  63. //
  64. int64 official_verify = 20 [(gogoproto.jsontag) = "official_verify"];
  65. //
  66. string link = 21 [(gogoproto.jsontag) = "link"];
  67. //
  68. int64 special_attention = 22 [(gogoproto.jsontag) = "special_attention"];
  69. //
  70. int64 broadcast_type = 23 [(gogoproto.jsontag) = "broadcast_type"];
  71. }
  72. message Data {
  73. //
  74. int64 total_count = 1 [(gogoproto.jsontag) = "total_count"];
  75. //
  76. int64 card_type = 2 [(gogoproto.jsontag) = "card_type"];
  77. //
  78. int64 big_card_type = 3 [(gogoproto.jsontag) = "big_card_type"];
  79. //
  80. string time_desc = 4 [(gogoproto.jsontag) = "time_desc"];
  81. //
  82. string uname_desc = 5 [(gogoproto.jsontag) = "uname_desc"];
  83. //
  84. string tags_desc = 6 [(gogoproto.jsontag) = "tags_desc"];
  85. //
  86. repeated Rooms rooms = 7 [(gogoproto.jsontag) = "rooms"];
  87. }
  88. }