AdminSilent.proto 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. syntax = "proto3";
  2. package banned_service.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service AdminSilent {
  6. /** 查询运营规则
  7. * 拿着规则直接用就好了,有就肯定是当前生效的配置
  8. */
  9. rpc get_shield_rule (AdminSilentGetShieldRuleReq) returns (AdminSilentGetShieldRuleResp);
  10. }
  11. message AdminSilentGetShieldRuleReq {
  12. //
  13. int64 roomid = 1 [(gogoproto.jsontag) = "roomid"];
  14. }
  15. message AdminSilentGetShieldRuleResp {
  16. //
  17. int64 code = 1 [(gogoproto.jsontag) = "code"];
  18. //
  19. string msg = 2 [(gogoproto.jsontag) = "msg"];
  20. //
  21. Data data = 3 [(gogoproto.jsontag) = "data"];
  22. message Data {
  23. //
  24. int64 id = 1 [(gogoproto.jsontag) = "id"];
  25. // 为0表示全局规则
  26. int64 roomid = 2 [(gogoproto.jsontag) = "roomid"];
  27. // 房间真实分要求
  28. int64 real_score = 3 [(gogoproto.jsontag) = "real_score"];
  29. // 范围0~10, 乘以了10
  30. int64 ai_score = 4 [(gogoproto.jsontag) = "ai_score"];
  31. }
  32. }