From 3aa6f8a55add5c6ef29f99816ae5bd4daa5de334 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Thu, 9 Jun 2022 15:16:34 +0800 Subject: [PATCH] fix: rpc = rar + rar / rpc = req + rsp --- account.proto | 2 +- game.proto | 3 +++ protocode.proto | 16 ++++++++-------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/account.proto b/account.proto index 7736192..4920f48 100644 --- a/account.proto +++ b/account.proto @@ -11,7 +11,7 @@ message ServiceInfo { int32 gmport = 5; } -message LoginRsp { +message AccountLogin{ string token = 1; repeated ServiceInfo game_service = 2; } diff --git a/game.proto b/game.proto index eb2282f..070420d 100644 --- a/game.proto +++ b/game.proto @@ -5,6 +5,9 @@ package game; //import "google/protobuf/empty.proto"; import "models.proto"; +// rpc = req + rsp 请求/返回 +// rpc = rar + rar 自回包 + message HeartReq { int64 code = 1; } diff --git a/protocode.proto b/protocode.proto index ef4ecfb..4644ae9 100644 --- a/protocode.proto +++ b/protocode.proto @@ -8,14 +8,14 @@ enum ProtoCode UNKNOWN = 0; HeartRpc = 1; LoginRpc = 2; - CreateRpc = 3; - ChangeTeamRpc = 4; - HeroEquipReferRpc = 5; - RoleClearItemsRpc = 6; - RoleStartBattleRpc = 7; - RoleEndBattleRpc = 8; - EquipmentDelRpc = 9; - HeroUpLevelRpc = 10; + RoleStartBattleRpc = 3; + RoleEndBattleRpc = 4; + HeroUpLevelRpc = 5; + CreateRpc = 6; + ChangeTeamRpc = 7; + HeroEquipReferRpc = 8; + RoleClearItemsRpc = 9; + EquipmentDelRpc = 10; DisConnectNty = 11; RoleUpdatePropertyNty = 12; RoleUpdateItemsNty = 13; -- libgit2 0.21.2