fix: bff add configID
This commit is contained in:
+44
-6
@@ -5,17 +5,55 @@ option go_package="./user";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
// 小程序注册
|
||||
message RegisterReq {
|
||||
string openid = 1; // 可空;空则服务端模拟
|
||||
string nickname = 2;
|
||||
string avatar = 3;
|
||||
string mobile = 4;
|
||||
uint32 gender = 5; // 1男 2女
|
||||
string birthday = 6;
|
||||
string username = 7;
|
||||
uint32 app_id = 8; // 应用标识
|
||||
}
|
||||
|
||||
// 账号密码注册
|
||||
message RegisterByUserReq {
|
||||
uint32 type = 1; // 1手机号 2邮箱
|
||||
string account = 2;
|
||||
string pwd = 3;
|
||||
string code = 4;
|
||||
uint32 app_id = 5; // 应用标识
|
||||
}
|
||||
|
||||
// openid 登录
|
||||
message LoginReq {
|
||||
string openid = 1;
|
||||
}
|
||||
|
||||
service User {
|
||||
rpc Create(CreateReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/customer/v3/login"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc Register(RegisterReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/customer/v3/register"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc RegisterByUser(RegisterByUserReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/customer/v3/register/user"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc Login(LoginReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/customer/v3/login"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user