mv src/proto to pkg/proto

This commit is contained in:
xmcy0011
2021-10-11 22:00:38 +08:00
parent 585715adbf
commit bc94d4e0b3
89 changed files with 90 additions and 90 deletions
+35
View File
@@ -0,0 +1,35 @@
syntax = "proto3";
package pbAuth;
option go_package = "auth;pbAuth";
message UserRegisterReq {
string UID = 1;
string Name = 2;
string Icon = 3;
int32 Gender = 4;
string Mobile = 5;
string Birth = 6;
string Email = 7;
string Ex = 8;
}
message UserRegisterResp {
bool Success = 1;
}
message UserTokenReq {
int32 Platform = 1;
string UID = 2;
}
message UserTokenResp {
int32 ErrCode = 1;
string ErrMsg = 2;
string Token = 3;
int64 ExpiredTime = 4;
}
service Auth {
rpc UserRegister(UserRegisterReq) returns(UserRegisterResp);
rpc UserToken(UserTokenReq) returns(UserTokenResp);
}