Commit bb9c916232c605571321f523802c17c469c8ab1c

Authored by zhanghualin
1 parent 3aa47935

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

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