appUcenter.proto 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. syntax = "proto3";
  2. package live.appucenter.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. message GetRoomInfoResp {
  6. int64 room_id = 1 [(gogoproto.jsontag) = 'room_id'];
  7. int64 uid = 2 [(gogoproto.jsontag) = 'uid'];
  8. string uname = 3 [(gogoproto.jsontag) = 'uname'];
  9. string title = 4 [(gogoproto.jsontag) = 'title'];
  10. string face = 5 [(gogoproto.jsontag) = 'face'];
  11. string try_time = 7 [(gogoproto.jsontag) = 'try_time'];
  12. int64 live_status = 8 [(gogoproto.jsontag) = 'live_status'];
  13. string area_v2_name = 9 [(gogoproto.jsontag) = 'area_v2_name'];
  14. int64 area_v2_id = 10 [(gogoproto.jsontag) = 'area_v2_id'];
  15. int64 master_level = 11 [(gogoproto.jsontag) = 'master_level'];
  16. int64 master_level_color = 12 [(gogoproto.jsontag) = 'master_level_color'];
  17. int64 master_score = 13 [(gogoproto.jsontag) = 'master_score'];
  18. int64 master_next_level = 14 [(gogoproto.jsontag) = 'master_next_level'];
  19. int64 max_level = 15 [(gogoproto.jsontag) = 'max_level'];
  20. int64 fc_num = 16 [(gogoproto.jsontag) = 'fc_num'];
  21. int64 rcost = 17 [(gogoproto.jsontag) = 'rcost'];
  22. int64 medal_status = 18 [(gogoproto.jsontag) = 'medal_status'];
  23. string medal_name = 19 [(gogoproto.jsontag) = 'medal_name'];
  24. int64 medal_rename_status = 20 [(gogoproto.jsontag) = 'medal_rename_status'];
  25. int64 is_medal = 21 [(gogoproto.jsontag) = 'is_medal'];
  26. string full_text = 22 [(gogoproto.jsontag) = 'full_text'];
  27. int64 identify_status = 23 [(gogoproto.jsontag) = 'identify_status'];
  28. int64 lock_status = 24 [(gogoproto.jsontag) = 'lock_status'];
  29. string lock_time = 25 [(gogoproto.jsontag) = 'lock_time'];
  30. int64 open_medal_level = 26 [(gogoproto.jsontag) = 'open_medal_level'];
  31. int64 master_next_level_score = 27 [(gogoproto.jsontag) = 'master_next_level_score'];
  32. int64 parent_id = 28 [(gogoproto.jsontag) = 'parent_id'];
  33. string parent_name = 29 [(gogoproto.jsontag) = 'parent_name'];
  34. }
  35. message GetRoomInfoReq {
  36. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  37. }
  38. message CreateResp {
  39. string room_id = 1 [(gogoproto.jsontag) = 'room_id'];
  40. }
  41. message CreateReq {
  42. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  43. }
  44. message GetTopicListReq {
  45. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  46. }
  47. message GetTopicListResp {
  48. repeated string topic_list = 1 [(gogoproto.jsontag) = 'topic_list'];
  49. }
  50. message CheckTopicReq {
  51. string platform = 1 [(gogoproto.moretags) = 'form:"platform" validate:"required"'];
  52. string topic = 2 [(gogoproto.moretags) = 'form:"topic" validate:"required"'];
  53. }
  54. message CheckTopicResp {
  55. }
  56. service Room {
  57. //获取房间基本信息
  58. //`method:"GET" midware:"auth"`
  59. rpc GetInfo(GetRoomInfoReq) returns (GetRoomInfoResp);
  60. //创建房间
  61. //`method:"POST" midware:"auth"`
  62. rpc Create(CreateReq) returns (CreateResp);
  63. }
  64. service Topic {
  65. //获取话题列表
  66. //`method:"GET" midware:"auth"`
  67. rpc GetTopicList(GetTopicListReq) returns (GetTopicListResp);
  68. //检验话题是否有效
  69. //`method:"GET" midware:"auth"`
  70. rpc CheckTopic(CheckTopicReq) returns (CheckTopicResp);
  71. }