inner.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. message InnerPlayerDisconnectReq{
  21. string player_id = 1;
  22. string game_id = 2;
  23. }
  24. message InnerPlayerDisconnectResp{}
  25. /**
  26. Cs Command Request Bean
  27. */
  28. message InnerCsFetchPlayerQueueReq {
  29. int64 limit = 1;
  30. }
  31. message InnerCsFetchPlayerQueueResp{
  32. int64 total = 1;
  33. google.protobuf.ListValue list = 2;
  34. }
  35. message InnerCsConnectPlayerReq{
  36. string cs_id = 1;
  37. string player_id = 2;
  38. string game_id = 3;
  39. }
  40. message InnerCsConnectPlayerResp{}
  41. message UpdateUserStatusReq{
  42. int64 type = 1;
  43. string uid = 2;
  44. string game_id = 3;
  45. }
  46. message UpdateUserStatusResp{}
  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 updateUserStatus (UpdateUserStatusReq) returns (UpdateUserStatusResp);
  53. }