room.proto 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. syntax = "proto3";
  2. package live.liveadmin.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. message RoomMngGetSecondVerifyListReq {
  6. // 房间id
  7. int64 room_id = 1 [(gogoproto.moretags) = 'form:"room_id"'];
  8. // 分区id多个
  9. string area = 2 [(gogoproto.moretags) = 'form:"area"'];
  10. // 页数
  11. int64 page = 3 [(gogoproto.moretags) = 'form:"page" validate:"required"'];
  12. // 页码
  13. int64 pagesize = 4 [(gogoproto.moretags) = 'form:"pagesize"'];
  14. // 业务,0直播监控1直播鉴黄2房间举报
  15. string biz = 5 [(gogoproto.moretags) = 'form:"biz"'];
  16. }
  17. message RoomMngGetSecondVerifyListResp {
  18. message Result {
  19. // 日志id
  20. int64 id = 1 [(gogoproto.jsontag) = "id"];
  21. // 当天切断记录
  22. int64 recent_cut_times = 2 [(gogoproto.jsontag) = "recent_cut_times"];
  23. // 当天警告记录
  24. int64 recent_warn_times = 3 [(gogoproto.jsontag) = "recent_warn_times"];
  25. // 用户名
  26. string uname = 4 [(gogoproto.jsontag) = "uname"];
  27. // 房间号
  28. int64 room_id = 5 [(gogoproto.jsontag) = "room_id"];
  29. // 主播id
  30. int64 uid = 6 [(gogoproto.jsontag) = "uid"];
  31. // 房间标题
  32. string title = 7 [(gogoproto.jsontag) = "title"];
  33. // 分区名
  34. string area_v2_name = 8 [(gogoproto.jsontag) = "area_v2_name"];
  35. // 粉丝数
  36. int64 fc = 9 [(gogoproto.jsontag) = "fc"];
  37. // 警告理由
  38. string warn_reason = 10 [(gogoproto.jsontag) = "warn_reason"];
  39. // 图片列表
  40. repeated string pics = 11 [(gogoproto.jsontag) = "pics"];
  41. // 警告时间
  42. string break_time = 12 [(gogoproto.jsontag) = "break_time"];
  43. // 共计警告时间
  44. int64 warn_times = 13 [(gogoproto.jsontag) = "warn_times"];
  45. }
  46. //
  47. repeated Result result = 1 [(gogoproto.jsontag) = "result"];
  48. // 总数
  49. int64 count = 2 [(gogoproto.jsontag) = "count"];
  50. // 页码
  51. int64 page = 3 [(gogoproto.jsontag) = "page"];
  52. // 分页大小
  53. int64 pagesize = 4 [(gogoproto.jsontag) = "pagesize"];
  54. }
  55. service roomMng{
  56. // 获取带有图片地址的二次审核列表
  57. // `method:"GET" internal:"true" `
  58. rpc getSecondVerifyListWithPics(RoomMngGetSecondVerifyListReq) returns(RoomMngGetSecondVerifyListResp);
  59. }