diff --git a/Hello.proto b/Hello.proto new file mode 100644 index 0000000..25fbf22 --- /dev/null +++ b/Hello.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +option go_package = "./pb;pb"; + +package hello; + +message HelloWorld { + string msg = 1; +} + +service Hello { + rpc SayHello(HelloWorld) returns(HelloWorld) {} +} \ No newline at end of file diff --git a/account.proto b/account.proto index 330cada..8e89f03 100644 --- a/account.proto +++ b/account.proto @@ -10,9 +10,9 @@ message ServiceInfo { } message Account{ - string phone = 2; // @inject_tag: index:"unique" pri:"1" - string password = 3; - string uid = 4; + string phone = 1; // @inject_tag: index:"unique" pri:"1" + string password = 2; + string uid = 3; } message CreateTokenRsp { diff --git a/game.proto b/game.proto index 1dc6245..aefd244 100644 --- a/game.proto +++ b/game.proto @@ -64,8 +64,7 @@ message RoleRsp { } message LoginReq { - string uid = 1; - string device = 2; + string device = 1; } service Game{ -- libgit2 0.21.2