inner.proto 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. syntax = "proto3";
  2. option go_package = "./pb";
  3. package pb;
  4. import "google/protobuf/struct.proto";
  5. /**
  6. Player Command Request Bean
  7. */
  8. message InnerPlayerFetchCsInfoReq{
  9. string player_id = 1;
  10. string game_id = 2;
  11. string cs_id = 3;
  12. }
  13. message InnerPlayerFetchCsInfoResp{
  14. string cs_id = 1;
  15. string cs_nickname = 2;
  16. string cs_avatar_url = 3;
  17. string cs_signature = 4;
  18. int64 online_status = 5;
  19. }
  20. /**
  21. Cs Command Request Bean
  22. */
  23. message InnerCsFetchPlayerQueueReq {
  24. int64 limit = 1;
  25. }
  26. message InnerCsFetchPlayerQueueResp{
  27. int64 total = 1;
  28. google.protobuf.ListValue list = 2;
  29. }
  30. message InnerCsConnectPlayerReq{
  31. string cs_id = 1;
  32. string player_id = 2;
  33. string game_id = 3;
  34. }
  35. message InnerCsConnectPlayerResp{}
  36. message NotifyUserStatusReq{
  37. int64 type = 1;
  38. string uid = 2;
  39. string game_id = 3;
  40. }
  41. message NotifyUserStatusResp{}
  42. service Inner {
  43. rpc playerFetchCsInfo (InnerPlayerFetchCsInfoReq) returns (InnerPlayerFetchCsInfoResp);
  44. rpc csFetchPlayerQueue (InnerCsFetchPlayerQueueReq) returns (InnerCsFetchPlayerQueueResp);
  45. rpc csConnectPlayer (InnerCsConnectPlayerReq) returns (InnerCsConnectPlayerResp);
  46. rpc notifyUserOnline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
  47. rpc notifyUserOffline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
  48. }