inner.proto 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 uid = 2;
  44. string game_id = 3;
  45. }
  46. message NotifyUserStatusResp{}
  47. service Inner {
  48. rpc playerFetchCsInfo (InnerPlayerFetchCsInfoReq) returns (InnerPlayerFetchCsInfoResp);
  49. rpc playerDisconnect (InnerPlayerDisconnectReq) returns (InnerPlayerDisconnectResp);
  50. rpc csFetchPlayerQueue (InnerCsFetchPlayerQueueReq) returns (InnerCsFetchPlayerQueueResp);
  51. rpc csConnectPlayer (InnerCsConnectPlayerReq) returns (InnerCsConnectPlayerResp);
  52. rpc notifyUserOnline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
  53. rpc notifyUserOffline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
  54. }