Commit 3aa6f8a55add5c6ef29f99816ae5bd4daa5de334
1 parent
3cb9f63c
fix: rpc = rar + rar / rpc = req + rsp
Showing
3 changed files
with
12 additions
and
9 deletions
Show diff stats
account.proto
@@ -11,7 +11,7 @@ message ServiceInfo { | @@ -11,7 +11,7 @@ message ServiceInfo { | ||
11 | int32 gmport = 5; | 11 | int32 gmport = 5; |
12 | } | 12 | } |
13 | 13 | ||
14 | -message LoginRsp { | 14 | +message AccountLogin{ |
15 | string token = 1; | 15 | string token = 1; |
16 | repeated ServiceInfo game_service = 2; | 16 | repeated ServiceInfo game_service = 2; |
17 | } | 17 | } |
game.proto
@@ -5,6 +5,9 @@ package game; | @@ -5,6 +5,9 @@ package game; | ||
5 | //import "google/protobuf/empty.proto"; | 5 | //import "google/protobuf/empty.proto"; |
6 | import "models.proto"; | 6 | import "models.proto"; |
7 | 7 | ||
8 | +// rpc = req + rsp 请求/返回 | ||
9 | +// rpc = rar + rar 自回包 | ||
10 | + | ||
8 | message HeartReq { | 11 | message HeartReq { |
9 | int64 code = 1; | 12 | int64 code = 1; |
10 | } | 13 | } |
protocode.proto
@@ -8,14 +8,14 @@ enum ProtoCode | @@ -8,14 +8,14 @@ enum ProtoCode | ||
8 | UNKNOWN = 0; | 8 | UNKNOWN = 0; |
9 | HeartRpc = 1; | 9 | HeartRpc = 1; |
10 | LoginRpc = 2; | 10 | LoginRpc = 2; |
11 | - CreateRpc = 3; | ||
12 | - ChangeTeamRpc = 4; | ||
13 | - HeroEquipReferRpc = 5; | ||
14 | - RoleClearItemsRpc = 6; | ||
15 | - RoleStartBattleRpc = 7; | ||
16 | - RoleEndBattleRpc = 8; | ||
17 | - EquipmentDelRpc = 9; | ||
18 | - HeroUpLevelRpc = 10; | 11 | + RoleStartBattleRpc = 3; |
12 | + RoleEndBattleRpc = 4; | ||
13 | + HeroUpLevelRpc = 5; | ||
14 | + CreateRpc = 6; | ||
15 | + ChangeTeamRpc = 7; | ||
16 | + HeroEquipReferRpc = 8; | ||
17 | + RoleClearItemsRpc = 9; | ||
18 | + EquipmentDelRpc = 10; | ||
19 | DisConnectNty = 11; | 19 | DisConnectNty = 11; |
20 | RoleUpdatePropertyNty = 12; | 20 | RoleUpdatePropertyNty = 12; |
21 | RoleUpdateItemsNty = 13; | 21 | RoleUpdateItemsNty = 13; |