Commit 55f842e18ed04c3b9841618400575e292aa5c1f3

Authored by zhangqijia
1 parent 4d33c2f1

fix: 更新背包系统文档,更改角色信息修改协议名字

Showing 3 changed files with 17 additions and 10 deletions   Show diff stats
doc/game.md
... ... @@ -28,7 +28,14 @@
28 28 |2|角色不存在|
29 29 |3|创建角色失败|
30 30  
31   -### 阵容变换 GoIntoBattleReq
  31 +### 阵容变换 ChangeTeamReq
32 32 | errorCode 返回值| 描述 |
33 33 | --- | --- |
34 34 |2|未登录,角色不在内存中|
  35 +
  36 +
  37 +## 通知(服务器主动推送)
  38 +
  39 +### 角色信息修改 RoleUpdatePropertyRsp
  40 +
  41 +### 背包信息修改 RoleUpdateItemsRsp
35 42 \ No newline at end of file
... ...
game.proto
... ... @@ -26,22 +26,22 @@ message CreateReq {
26 26 string device = 2;
27 27 }
28 28  
  29 +message ChangeTeamReq {
  30 + repeated models.Team team = 1;
  31 +}
  32 +
29 33 message RoleRsp {
30 34 models.Role role = 2;
31 35 repeated models.Hero hero = 3;
32 36 repeated models.Team team = 4;
33 37 }
34 38  
35   -//ResponseCmd UpdateRolePropertyRsp
36   -message UpdateRolePropertyRsp {
  39 +//ResponseCmd RoleUpdatePropertyRsp
  40 +message RoleUpdatePropertyRsp {
37 41 repeated int32 id = 1;
38 42 models.Role role = 2;
39 43 }
40 44  
41   -message ChangeTeamReq {
42   - repeated models.Team team = 1;
43   -}
44   -
45 45 //ResponseCmd RoleUpdateItemsRsp
46 46 message RoleUpdateItemsRsp{
47 47 string items = 1;
... ...
protocode.proto
... ... @@ -11,9 +11,9 @@ enum ProtoCode
11 11 HeartRsp = 3;
12 12 LoginReq = 4;
13 13 CreateReq = 5;
14   - RoleRsp = 6;
15   - UpdateRolePropertyRsp = 7;
16   - ChangeTeamReq = 8;
  14 + ChangeTeamReq = 6;
  15 + RoleRsp = 7;
  16 + RoleUpdatePropertyRsp = 8;
17 17 RoleUpdateItemsRsp = 9;
18 18  
19 19 }
20 20 \ No newline at end of file
... ...