Commit cee7537250bcee3ddd04e03d2d142d6d1ac6417e

Authored by zhangqijia
1 parent 56444152

update game.proto

Showing 3 changed files with 16 additions and 5 deletions   Show diff stats
Hello.proto 0 → 100644
... ... @@ -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 13 \ No newline at end of file
... ...
account.proto
... ... @@ -10,9 +10,9 @@ message ServiceInfo {
10 10 }
11 11  
12 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 18 message CreateTokenRsp {
... ...
game.proto
... ... @@ -64,8 +64,7 @@ message RoleRsp {
64 64 }
65 65  
66 66 message LoginReq {
67   - string uid = 1;
68   - string device = 2;
  67 + string device = 1;
69 68 }
70 69  
71 70 service Game{
... ...