roomAdmin.proto 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. syntax = "proto3";
  2. package live.webroom.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. // History 相关服务
  6. service RoomAdmin {
  7. // 获取主播拥有的的所有房管, 无需登录态
  8. // `method:"GET"
  9. rpc get_by_room (RoomAdminGetByRoomReq) returns (RoomAdminGetByRoomResp);
  10. }
  11. message RoomAdminGetByRoomReq {
  12. // 页数
  13. int64 page = 1 [(gogoproto.moretags) = 'form:"page"'];
  14. // 房间号
  15. int64 roomid = 2 [(gogoproto.moretags) = 'form:"roomid" validate:"required"'];
  16. // 每页数量
  17. int64 page_size = 3 [(gogoproto.moretags) = 'form:"page_size"'];
  18. }
  19. message RoomAdminGetByRoomResp {
  20. //
  21. Page page = 1;
  22. //
  23. repeated Data data = 2 [(gogoproto.jsontag) = "data"];
  24. message Data {
  25. // 用户id
  26. int64 uid = 3 [(gogoproto.jsontag) = "uid"];
  27. // 用户名
  28. string uname = 4 [(gogoproto.jsontag) = "uname"];
  29. // 用户头像
  30. string face = 5 [(gogoproto.jsontag) = "face"];
  31. // 上任时间
  32. string ctime = 6 [(gogoproto.jsontag) = "ctime"];
  33. }
  34. message Page {
  35. // 当前页码
  36. int64 page = 1;
  37. // 每页大小
  38. int64 page_size = 2;
  39. // 总页数
  40. int64 total_page = 3;
  41. // 总记录数
  42. int64 total_count = 4;
  43. }
  44. }