Commit 19fbde9e8b1f903b8d627b47828c4b72c8d40c78

Authored by zhangqijia
1 parent c57c0ea6

fix: 英雄升级返回值+protobuf包裹。优化协议名字。req -> rpc.

Showing 2 changed files with 26 additions and 18 deletions   Show diff stats
@@ -102,8 +102,12 @@ message EquipmentAddRsp { @@ -102,8 +102,12 @@ message EquipmentAddRsp {
102 models.Equipment equip = 1; 102 models.Equipment equip = 1;
103 } 103 }
104 104
105 -//ResponseCmd HeroUpLevelReq 105 +//ResponseCmd HeroUpLevelRsp
106 message HeroUpLevelReq { 106 message HeroUpLevelReq {
107 string heroId = 1; 107 string heroId = 1;
108 string items = 2; // [itemId1=count1, itemId2=count2] 108 string items = 2; // [itemId1=count1, itemId2=count2]
  109 +}
  110 +
  111 +message HeroUpLevelRsp {
  112 + models.Hero hero = 1;
109 } 113 }
110 \ No newline at end of file 114 \ No newline at end of file
@@ -6,23 +6,27 @@ package protocode; @@ -6,23 +6,27 @@ package protocode;
6 enum ProtoCode 6 enum ProtoCode
7 { 7 {
8 UNKNOWN = 0; 8 UNKNOWN = 0;
9 - LoginRsp = 1;  
10 - HeartReq = 2;  
11 - HeartRsp = 3;  
12 - LoginReq = 4;  
13 - CreateReq = 5;  
14 - DisConnectRsp = 6;  
15 - ChangeTeamReq = 7;  
16 - HeroEquipReferReq = 8;  
17 - RoleRsp = 9;  
18 - RoleUpdatePropertyRsp = 10;  
19 - RoleUpdateItemsRsp = 11;  
20 - RoleClearItemsReq = 12;  
21 - RoleStartBattleReq = 13;  
22 - RoleEndBattleReq = 14;  
23 - RoleEndBattleRsp = 15;  
24 - EquipmentDelReq = 16; 9 +
  10 + LoginRsp = 1;
  11 + HeartRpc = 2;
  12 + CreateRpc = 3;
  13 + ChangeTeamRpc = 4;
  14 + HeroEquipReferRpc = 5;
  15 + RoleClearItemsRpc = 6;
  16 + RoleStartBattleRpc = 7;
  17 + RoleEndBattleRpc = 8;
  18 + EquipmentDelRpc = 9;
  19 + HeroUpLevelRpc = 10;
  20 +
  21 + HeartRsp = 11;
  22 + DisConnectRsp = 12;
  23 + RoleRsp = 13;
  24 + RoleUpdatePropertyRsp = 14;
  25 + RoleUpdateItemsRsp = 15;
  26 + RoleEndBattleRsp = 16;
25 EquipmentAddRsp = 17; 27 EquipmentAddRsp = 17;
26 - HeroUpLevelReq = 18; 28 + HeroUpLevelRsp = 18;
  29 +
  30 +
27 31
28 } 32 }
29 \ No newline at end of file 33 \ No newline at end of file