RoomAdmin.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. syntax = "proto3";
  2. package live_user.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service RoomAdmin {
  6. /** 判断是否房管,防止和room循环调用,传入所有参数
  7. *
  8. */
  9. rpc is_room_admin (RoomAdminIsRoomAdminReq) returns (RoomAdminIsRoomAdminResp);
  10. }
  11. message RoomAdminIsRoomAdminReq {
  12. // 用户id
  13. string uid = 1 [(gogoproto.jsontag) = "uid"];
  14. // 主播的用户 roomid
  15. int64 roomid = 2 [(gogoproto.jsontag) = "roomid"];
  16. // 主播的用户 anchor_id
  17. int64 anchor_id = 3 [(gogoproto.jsontag) = "anchor_id"];
  18. }
  19. message RoomAdminIsRoomAdminResp {
  20. // code
  21. int64 code = 1 [(gogoproto.jsontag) = "code"];
  22. // msg
  23. string msg = 2 [(gogoproto.jsontag) = "msg"];
  24. //
  25. Data data = 3 [(gogoproto.jsontag) = "data"];
  26. message UI {
  27. // 用户id
  28. int64 uid = 1 [(gogoproto.jsontag) = "uid"];
  29. // 用户名
  30. string uname = 2 [(gogoproto.jsontag) = "uname"];
  31. }
  32. message Data {
  33. // banner
  34. UI userinfo = 1 [(gogoproto.jsontag) = "userinfo"];
  35. // 房管的用户id
  36. int64 uid = 2 [(gogoproto.jsontag) = "uid"];
  37. // 房间号
  38. int64 roomid = 3 [(gogoproto.jsontag) = "roomid"];
  39. // 创建时间 "2017-07-26 17:12:51"
  40. string ctime = 4 [(gogoproto.jsontag) = "ctime"];
  41. }
  42. }