Commit cee7537250bcee3ddd04e03d2d142d6d1ac6417e
1 parent
56444152
update game.proto
Showing
3 changed files
with
16 additions
and
5 deletions
Show diff stats
@@ -0,0 +1,12 @@ | @@ -0,0 +1,12 @@ | ||
1 | +syntax = "proto3"; | ||
2 | +option go_package = "./pb;pb"; | ||
3 | + | ||
4 | +package hello; | ||
5 | + | ||
6 | +message HelloWorld { | ||
7 | + string msg = 1; | ||
8 | +} | ||
9 | + | ||
10 | +service Hello { | ||
11 | + rpc SayHello(HelloWorld) returns(HelloWorld) {} | ||
12 | +} | ||
0 | \ No newline at end of file | 13 | \ No newline at end of file |
account.proto
@@ -10,9 +10,9 @@ message ServiceInfo { | @@ -10,9 +10,9 @@ message ServiceInfo { | ||
10 | } | 10 | } |
11 | 11 | ||
12 | message Account{ | 12 | message Account{ |
13 | - string phone = 2; // @inject_tag: index:"unique" pri:"1" | ||
14 | - string password = 3; | ||
15 | - string uid = 4; | 13 | + string phone = 1; // @inject_tag: index:"unique" pri:"1" |
14 | + string password = 2; | ||
15 | + string uid = 3; | ||
16 | } | 16 | } |
17 | 17 | ||
18 | message CreateTokenRsp { | 18 | message CreateTokenRsp { |