12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- syntax = "proto3";
- option go_package = "./pb";
- package pb;
- import "google/protobuf/struct.proto";
- message CmdResp{
- int64 code = 1;
- string msg = 2;
- google.protobuf.Struct data = 3;
- }
- /**
- Player Command Request Bean
- */
- message PlayerFetchCsInfoReq{
- string cs_id = 1;
- }
- message PlayerFetchHistoryMsgReq{
- int64 page = 1;
- int64 limit = 2;
- }
- message PlayerFetchMsgReq{}
- message PlayerSendMsgReq{
- string content = 1;
- string pic = 2;
- }
- message PlayerDisconnectReq{}
- /**
- Cs Command Request Bean
- */
- message CsFetchPlayerQueueReq{
- int64 limit = 1;
- }
- message CsConnectPlayerReq{
- string player_id = 1;
- string game_id = 2;
- }
- message CsFetchHistoryChatReq{
- int64 page = 1;
- int64 limit = 2;
- }
- message CsFetchHistoryMsgReq{
- string player_id = 1;
- string game_id = 2;
- int64 page = 3;
- int64 limit = 4;
- }
- message CsFetchMsgReq{
- string player_id = 1;
- string game_id = 2;
- }
- message CsSendMsgReq{
- string player_id = 1;
- string game_id = 2;
- string content = 3;
- string pic = 4;
- }
- service Cmd {
- rpc playerFetchCsInfo (PlayerFetchCsInfoReq) returns (CmdResp);
- rpc playerFetchHistoryMsg (PlayerFetchHistoryMsgReq) returns (CmdResp);
- rpc playerFetchMsg (PlayerFetchMsgReq) returns (CmdResp);
- rpc playerSendMsg (PlayerSendMsgReq) returns (CmdResp);
- rpc playerDisconnect (PlayerDisconnectReq) returns (CmdResp);
- rpc csFetchPlayerQueue (CsFetchPlayerQueueReq) returns (CmdResp);
- rpc csConnectPlayer (CsConnectPlayerReq) returns (CmdResp);
- rpc csFetchHistoryChat (CsFetchHistoryChatReq) returns (CmdResp);
- rpc csFetchHistoryMsg (CsFetchHistoryMsgReq) returns (CmdResp);
- rpc csFetchMsg (CsFetchMsgReq) returns (CmdResp);
- rpc csSendMsg (CsSendMsgReq) returns (CmdResp);
- }
|