12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- syntax = "proto3";
- option go_package = "./pb";
- package pb;
- import "google/protobuf/struct.proto";
- /**
- Player Command Request Bean
- */
- message InnerPlayerFetchCsInfoReq{
- string player_id = 1;
- string game_id = 2;
- string cs_id = 3;
- }
- message InnerPlayerFetchCsInfoResp{
- string cs_id = 1;
- string cs_nickname = 2;
- string cs_avatar_url = 3;
- string cs_signature = 4;
- int64 online_status = 5;
- }
- /**
- Cs Command Request Bean
- */
- message InnerCsFetchPlayerQueueReq {
- int64 limit = 1;
- }
- message InnerCsFetchPlayerQueueResp{
- int64 total = 1;
- google.protobuf.ListValue list = 2;
- }
- message InnerCsConnectPlayerReq{
- string cs_id = 1;
- string player_id = 2;
- string game_id = 3;
- }
- message InnerCsConnectPlayerResp{}
- message NotifyUserStatusReq{
- int64 type = 1;
- string uid = 2;
- string game_id = 3;
- }
- message NotifyUserStatusResp{}
- service Inner {
- rpc playerFetchCsInfo (InnerPlayerFetchCsInfoReq) returns (InnerPlayerFetchCsInfoResp);
- rpc csFetchPlayerQueue (InnerCsFetchPlayerQueueReq) returns (InnerCsFetchPlayerQueueResp);
- rpc csConnectPlayer (InnerCsConnectPlayerReq) returns (InnerCsConnectPlayerResp);
- rpc notifyUserOnline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
- rpc notifyUserOffline (NotifyUserStatusReq) returns (NotifyUserStatusResp);
- }
|