appBlink.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. syntax = "proto3";
  2. package live.appblink.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. // 获取当前有效闪屏配置(客户端)
  6. message GetInfoReq {
  7. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];;
  8. string build = 2 [(gogoproto.moretags) = 'form:"build" validate:"required"'];;
  9. }
  10. message GetInfoResp {
  11. int64 id = 1 [(gogoproto.jsontag) = "id"];
  12. string title = 2 [(gogoproto.jsontag) = "title"];
  13. string jumpPath = 3 [(gogoproto.jsontag) = "jumpPath"];
  14. int64 jumpTime = 4 [(gogoproto.jsontag) = "jumpTime"];
  15. int64 jumpPathType = 5 [(gogoproto.jsontag) = "jumpPathType"];
  16. string imageUrl = 6 [(gogoproto.jsontag) = "imageUrl"];
  17. }
  18. message GetRoomInfoResp {
  19. int64 room_id = 1 [(gogoproto.jsontag) = 'room_id'];
  20. int64 uid = 2 [(gogoproto.jsontag) = 'uid'];
  21. string uname = 3 [(gogoproto.jsontag) = 'uname'];
  22. string title = 4 [(gogoproto.jsontag) = 'title'];
  23. string face = 5 [(gogoproto.jsontag) = 'face'];
  24. string try_time = 7 [(gogoproto.jsontag) = 'try_time'];
  25. int64 live_status = 8 [(gogoproto.jsontag) = 'live_status'];
  26. string area_v2_name = 9 [(gogoproto.jsontag) = 'area_v2_name'];
  27. int64 area_v2_id = 10 [(gogoproto.jsontag) = 'area_v2_id'];
  28. int64 master_level = 11 [(gogoproto.jsontag) = 'master_level'];
  29. int64 master_level_color = 12 [(gogoproto.jsontag) = 'master_level_color'];
  30. int64 master_score = 13 [(gogoproto.jsontag) = 'master_score'];
  31. int64 master_next_level = 14 [(gogoproto.jsontag) = 'master_next_level'];
  32. int64 max_level = 15 [(gogoproto.jsontag) = 'max_level'];
  33. int64 fc_num = 16 [(gogoproto.jsontag) = 'fc_num'];
  34. int64 rcost = 17 [(gogoproto.jsontag) = 'rcost'];
  35. int64 medal_status = 18 [(gogoproto.jsontag) = 'medal_status'];
  36. string medal_name = 19 [(gogoproto.jsontag) = 'medal_name'];
  37. int64 medal_rename_status = 20 [(gogoproto.jsontag) = 'medal_rename_status'];
  38. int64 is_medal = 21 [(gogoproto.jsontag) = 'is_medal'];
  39. string full_text = 22 [(gogoproto.jsontag) = 'full_text'];
  40. int64 identify_status = 23 [(gogoproto.jsontag) = 'identify_status'];
  41. int64 lock_status = 24 [(gogoproto.jsontag) = 'lock_status'];
  42. string lock_time = 25 [(gogoproto.jsontag) = 'lock_time'];
  43. int64 open_medal_level = 26 [(gogoproto.jsontag) = 'open_medal_level'];
  44. int64 master_next_level_score = 27 [(gogoproto.jsontag) = 'master_next_level_score'];
  45. int64 parent_id = 28 [(gogoproto.jsontag) = 'parent_id'];
  46. string parent_name = 29 [(gogoproto.jsontag) = 'parent_name'];
  47. }
  48. message GetRoomInfoReq {
  49. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  50. }
  51. message CreateResp {
  52. string room_id = 1 [(gogoproto.jsontag) = 'room_id'];
  53. }
  54. message CreateReq {
  55. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  56. }
  57. message GetTopicListReq {
  58. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  59. }
  60. message GetTopicListResp {
  61. repeated string topic_list = 1 [(gogoproto.jsontag) = 'topic_list'];
  62. }
  63. message CheckTopicReq {
  64. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  65. string topic = 2 [(gogoproto.moretags) = 'form:"topic" validate:"required"'];
  66. }
  67. message CheckTopicResp {
  68. }
  69. service Splash {
  70. //获取有效闪屏配置
  71. //`dynamic:"true"`
  72. rpc GetInfo(GetInfoReq) returns (GetInfoResp);
  73. }
  74. service Banner {
  75. //获取banner配置
  76. //`dynamic:"true"`
  77. rpc GetBlinkBanner(GetInfoReq) returns (GetInfoResp);
  78. }
  79. service Room {
  80. //获取房间基本信息
  81. //`method:"GET" midware:"auth"`
  82. rpc GetInfo(GetRoomInfoReq) returns (GetRoomInfoResp);
  83. //创建房间
  84. //`method:"POST" midware:"auth"`
  85. rpc Create(CreateReq) returns (CreateResp);
  86. }
  87. service Topic {
  88. //获取话题列表
  89. //`method:"GET" midware:"auth"`
  90. rpc GetTopicList(GetTopicListReq) returns (GetTopicListResp);
  91. //检验话题是否有效
  92. //`method:"GET" midware:"auth"`
  93. rpc CheckTopic(CheckTopicReq) returns (CheckTopicResp);
  94. }