Commit 07b7cd58812440e3846ba2298dd194d990e9f5f6
1 parent
eb11c83d
增加了自我回包的标记
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
game.proto
| ... | ... | @@ -5,6 +5,7 @@ package game; |
| 5 | 5 | //import "google/protobuf/empty.proto"; |
| 6 | 6 | import "models.proto"; |
| 7 | 7 | |
| 8 | +//ResponseCmd HeartRsp | |
| 8 | 9 | message HeartReq { |
| 9 | 10 | int64 code = 1; |
| 10 | 11 | } |
| ... | ... | @@ -19,6 +20,7 @@ message LoginReq { |
| 19 | 20 | string device = 2; |
| 20 | 21 | } |
| 21 | 22 | |
| 23 | +//ResponseCmd CreateReq | |
| 22 | 24 | message CreateReq { |
| 23 | 25 | string token = 1; |
| 24 | 26 | string device = 2; |
| ... | ... | @@ -30,6 +32,7 @@ message RoleRsp { |
| 30 | 32 | repeated models.Team team = 4; |
| 31 | 33 | } |
| 32 | 34 | |
| 35 | +//ResponseCmd UpdateRolePropertyRsp | |
| 33 | 36 | message UpdateRolePropertyRsp { |
| 34 | 37 | repeated int32 id = 1; |
| 35 | 38 | models.Role role = 2; |
| ... | ... | @@ -37,4 +40,4 @@ message UpdateRolePropertyRsp { |
| 37 | 40 | |
| 38 | 41 | message GoIntoBattleReq { |
| 39 | 42 | repeated models.Team team = 1; |
| 40 | 43 | -} |
| 44 | +} | |
| 41 | 45 | \ No newline at end of file | ... | ... |
models.proto
| ... | ... | @@ -43,7 +43,7 @@ message Team { |
| 43 | 43 | |
| 44 | 44 | message Role { |
| 45 | 45 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
| 46 | - string uid = 2;// @inject_tag: index:"unique" | |
| 46 | + string uid = 2; // @inject_tag: index:"unique" | |
| 47 | 47 | string device = 3; |
| 48 | 48 | string nick = 4; |
| 49 | 49 | int32 level = 5; | ... | ... |