inner.proto 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 game_id = 1;
  10. string player_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. int32 online_status = 5;
  19. }
  20. message InnerPlayerDisconnectReq{
  21. string game_id = 1;
  22. string player_id = 2;
  23. }
  24. message InnerPlayerDisconnectResp{}
  25. /**
  26. Cs Command Request Bean
  27. */
  28. message InnerCsFetchPlayerQueueReq {
  29. int32 limit = 1;
  30. }
  31. message InnerCsFetchPlayerQueueResp{
  32. int32 total = 1;
  33. google.protobuf.ListValue list = 2;
  34. }
  35. message InnerCsConnectPlayerReq{
  36. string cs_id = 1;
  37. string game_id = 2;
  38. string player_id = 3;
  39. }
  40. message InnerCsConnectPlayerResp{}
  41. message NotifyUserStatusReq{
  42. int32 type = 1;
  43. string game_id = 2;
  44. string uid = 3;
  45. }
  46. message NotifyUserStatusResp{
  47. int32 type = 1;
  48. int32 queue_size = 2;
  49. string game_id = 3;
  50. string uid = 4;
  51. string cs_id = 5;
  52. }
  53. service Inner {
  54. rpc playerFetchCsInfo (InnerPlayerFetchCsInfoReq) returns (InnerPlayerFetchCsInfoResp);
  55. rpc playerDisconnect (InnerPlayerDisconnectReq) returns (InnerPlayerDisconnectResp);
  56. rpc csFetchPlayerQueue (InnerCsFetchPlayerQueueReq) returns (InnerCsFetchPlayerQueueResp);
  57. rpc csConnectPlayer (InnerCsConnectPlayerReq) returns (InnerCsConnectPlayerResp);
  58. rpc notifyUserOnline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
  59. rpc notifyUserOffline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
  60. }