Commit b06453989759451c4808e52f854a20c12f6b683d
1 parent
51d93fe1
fix: update protocode. add account 版本信息协议
Showing
4 changed files
with
18 additions
and
11 deletions
Show diff stats
account.proto
@@ -20,4 +20,10 @@ message Register { | @@ -20,4 +20,10 @@ message Register { | ||
20 | string phone = 1; // @inject_tag: binding:"required" | 20 | string phone = 1; // @inject_tag: binding:"required" |
21 | string password = 2; // @inject_tag: binding:"required" | 21 | string password = 2; // @inject_tag: binding:"required" |
22 | string code = 3; // @inject_tag: binding:"required" | 22 | string code = 3; // @inject_tag: binding:"required" |
23 | +} | ||
24 | + | ||
25 | +message UpdateVersion { | ||
26 | + int32 i = 1; | ||
27 | + int32 x = 2; | ||
28 | + int32 y = 3; | ||
23 | } | 29 | } |
24 | \ No newline at end of file | 30 | \ No newline at end of file |
game.proto
@@ -53,8 +53,8 @@ message RoleRsp { | @@ -53,8 +53,8 @@ message RoleRsp { | ||
53 | repeated models.Equipment equipments = 5; | 53 | repeated models.Equipment equipments = 5; |
54 | } | 54 | } |
55 | 55 | ||
56 | -//ResponseCmd RoleUpdatePropertyRsp | ||
57 | -message RoleUpdatePropertyRsp { | 56 | +//ResponseCmd RoleUpdatePropertyNty |
57 | +message RoleUpdatePropertyNty{ | ||
58 | repeated int32 id = 1; | 58 | repeated int32 id = 1; |
59 | models.Role role = 2; | 59 | models.Role role = 2; |
60 | } | 60 | } |
@@ -98,7 +98,7 @@ message EquipmentDelReq { | @@ -98,7 +98,7 @@ message EquipmentDelReq { | ||
98 | } | 98 | } |
99 | 99 | ||
100 | //ResponseCmd EquipmentAddRsp | 100 | //ResponseCmd EquipmentAddRsp |
101 | -message EquipmentAddRsp { | 101 | +message EquipmentAddNty{ |
102 | models.Equipment equip = 1; | 102 | models.Equipment equip = 1; |
103 | } | 103 | } |
104 | 104 |
models.proto
@@ -10,6 +10,11 @@ message Account { | @@ -10,6 +10,11 @@ message Account { | ||
10 | string uid = 3; | 10 | string uid = 3; |
11 | } | 11 | } |
12 | 12 | ||
13 | +message Config { | ||
14 | + string id = 1; // @inject_tag: index:"unique" pri:"1" | ||
15 | + string version = 2; | ||
16 | +} | ||
17 | + | ||
13 | message Hero { | 18 | message Hero { |
14 | string id = 1; // @inject_tag: index:"unique" pri:"1" | 19 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
15 | string role_id = 2; | 20 | string role_id = 2; |
protocode.proto
@@ -16,13 +16,9 @@ enum ProtoCode | @@ -16,13 +16,9 @@ enum ProtoCode | ||
16 | RoleEndBattleRpc = 8; | 16 | RoleEndBattleRpc = 8; |
17 | EquipmentDelRpc = 9; | 17 | EquipmentDelRpc = 9; |
18 | HeroUpLevelRpc = 10; | 18 | HeroUpLevelRpc = 10; |
19 | - DisConnectNty= 11; | ||
20 | - RoleUpdateItemsNty= 12; | ||
21 | - HeartRsp = 13; | ||
22 | - RoleRsp = 14; | ||
23 | - RoleUpdatePropertyRsp = 15; | ||
24 | - RoleEndBattleRsp = 16; | ||
25 | - EquipmentAddRsp = 17; | ||
26 | - HeroUpLevelRsp = 18; | 19 | + DisConnectNty = 11; |
20 | + RoleUpdatePropertyNty = 12; | ||
21 | + RoleUpdateItemsNty = 13; | ||
22 | + EquipmentAddNty = 14; | ||
27 | 23 | ||
28 | } | 24 | } |
29 | \ No newline at end of file | 25 | \ No newline at end of file |