Commit b06453989759451c4808e52f854a20c12f6b683d

Authored by zhangqijia
1 parent 51d93fe1

fix: update protocode. add account 版本信息协议

account.proto
... ... @@ -20,4 +20,10 @@ message Register {
20 20 string phone = 1; // @inject_tag: binding:"required"
21 21 string password = 2; // @inject_tag: binding:"required"
22 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 30 \ No newline at end of file
... ...
game.proto
... ... @@ -53,8 +53,8 @@ message RoleRsp {
53 53 repeated models.Equipment equipments = 5;
54 54 }
55 55  
56   -//ResponseCmd RoleUpdatePropertyRsp
57   -message RoleUpdatePropertyRsp {
  56 +//ResponseCmd RoleUpdatePropertyNty
  57 +message RoleUpdatePropertyNty{
58 58 repeated int32 id = 1;
59 59 models.Role role = 2;
60 60 }
... ... @@ -98,7 +98,7 @@ message EquipmentDelReq {
98 98 }
99 99  
100 100 //ResponseCmd EquipmentAddRsp
101   -message EquipmentAddRsp {
  101 +message EquipmentAddNty{
102 102 models.Equipment equip = 1;
103 103 }
104 104  
... ...
models.proto
... ... @@ -10,6 +10,11 @@ message Account {
10 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 18 message Hero {
14 19 string id = 1; // @inject_tag: index:"unique" pri:"1"
15 20 string role_id = 2;
... ...
protocode.proto
... ... @@ -16,13 +16,9 @@ enum ProtoCode
16 16 RoleEndBattleRpc = 8;
17 17 EquipmentDelRpc = 9;
18 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 25 \ No newline at end of file
... ...