Commit bb9c916232c605571321f523802c17c469c8ab1c

Authored by zhanghualin
1 parent 3aa47935

新增proto注释 //ResponseCmd 用于约定消息回包对应类型

message 名字后面 大括号前面 需要一个空格
Showing 2 changed files with 4 additions and 3 deletions   Show diff stats
game.proto
... ... @@ -9,12 +9,13 @@ message HeartReq {
9 9 int64 code = 1;
10 10 }
11 11  
  12 +//ResponseCmd RoleRsp
12 13 message LoginReq {
13 14 string uid = 1;
14 15 string device = 2;
15 16 }
16 17  
17   -message LoginResponse{
  18 +message LoginResponse {
18 19 string uid = 1;
19 20 string device = 2;
20 21 }
... ...
models.proto
... ... @@ -4,7 +4,7 @@ option go_package = "./pb;pb";
4 4 package models;
5 5 //import "google/protobuf/empty.proto";
6 6  
7   -message Account{
  7 +message Account {
8 8 string phone = 1; // @inject_tag: index:"unique" pri:"1"
9 9 string password = 2;
10 10 string uid = 3;
... ... @@ -38,7 +38,7 @@ message Team {
38 38 string hero_ids = 2;
39 39 }
40 40  
41   -message Role{
  41 +message Role {
42 42 int64 id = 1; // @inject_tag: index:"unique" pri:"1"
43 43 string uid = 2;// @inject_tag: index:"unique"
44 44 string device = 3;
... ...