SilentMng.proto 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. syntax = "proto3";
  2. package banned_service.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service SilentMng {
  6. /** 查询是否是黑名单
  7. *
  8. */
  9. rpc is_block_user (SilentMngIsBlockUserReq) returns (SilentMngIsBlockUserResp);
  10. }
  11. message SilentMngIsBlockUserReq {
  12. //
  13. int64 uid = 1 [(gogoproto.jsontag) = "uid"];
  14. //
  15. int64 roomid = 2 [(gogoproto.jsontag) = "roomid"];
  16. // 1表示弹幕禁言,2表示房间信息
  17. int64 type = 3 [(gogoproto.jsontag) = "type"];
  18. }
  19. message SilentMngIsBlockUserResp {
  20. //
  21. int64 code = 1 [(gogoproto.jsontag) = "code"];
  22. //
  23. string msg = 2 [(gogoproto.jsontag) = "msg"];
  24. //
  25. Data data = 3 [(gogoproto.jsontag) = "data"];
  26. message Data {
  27. //
  28. int64 uid = 1 [(gogoproto.jsontag) = "uid"];
  29. //
  30. int64 roomid = 2 [(gogoproto.jsontag) = "roomid"];
  31. //
  32. bool is_block_user = 3 [(gogoproto.jsontag) = "is_block_user"];
  33. //
  34. int64 type = 4 [(gogoproto.jsontag) = "type"];
  35. // 禁言到期时间戳
  36. int64 block_end_time = 5 [(gogoproto.jsontag) = "block_end_time"];
  37. }
  38. }