Message.proto 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. syntax = "proto3";
  2. package live_data.v0;
  3. option go_package = "v0";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service Message {
  6. /** 监控队列: topic:RoomStatusNotify-T
  7. *
  8. */
  9. rpc liveNotify (MessageLiveNotifyReq) returns (MessageLiveNotifyResp);
  10. /** 监控队列: topic:OneLiveRoomAreaChange-T
  11. *
  12. */
  13. rpc areaNotify (MessageAreaNotifyReq) returns (MessageAreaNotifyResp);
  14. }
  15. message MessageLiveNotifyReq {
  16. }
  17. message MessageLiveNotifyResp {
  18. // code
  19. int64 code = 1 [(gogoproto.jsontag) = "code"];
  20. // msg
  21. string msg = 2 [(gogoproto.jsontag) = "msg"];
  22. //
  23. Data data = 3 [(gogoproto.jsontag) = "data"];
  24. message Data {
  25. }
  26. }
  27. message MessageAreaNotifyReq {
  28. }
  29. message MessageAreaNotifyResp {
  30. // code
  31. int64 code = 1 [(gogoproto.jsontag) = "code"];
  32. // msg
  33. string msg = 2 [(gogoproto.jsontag) = "msg"];
  34. //
  35. Data data = 3 [(gogoproto.jsontag) = "data"];
  36. message Data {
  37. }
  38. }