From cee7537250bcee3ddd04e03d2d142d6d1ac6417e Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Tue, 22 Feb 2022 17:17:25 +0800 Subject: [PATCH] update game.proto --- Hello.proto | 12 ++++++++++++ account.proto | 6 +++--- game.proto | 3 +-- 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 Hello.proto 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