feat: import services and standardize Go 1.26.5
This commit is contained in:
42
apps/base/passport/proto/login.proto
Normal file
42
apps/base/passport/proto/login.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
package passport;
|
||||
option go_package = ".;passport";
|
||||
import "blocks.proto";
|
||||
|
||||
// Passport-通行证模块-登录
|
||||
service Login{
|
||||
// 通过密码登录
|
||||
rpc Pwd(LoginByPwdRequest) returns (LoginReply) {}
|
||||
|
||||
// 通过验证码登录
|
||||
rpc Code(LoginByCodeRequest) returns (LoginReply) {}
|
||||
|
||||
// 通过验证码快捷登录并注册
|
||||
rpc Quick(LoginByCodeRequest) returns (LoginReply) {}
|
||||
}
|
||||
|
||||
|
||||
message LoginByPwdRequest {
|
||||
string account = 1; // 账号 必填
|
||||
string password = 2; // 密码 必填
|
||||
}
|
||||
|
||||
|
||||
message LoginByCodeRequest {
|
||||
string country = 1; // 国家
|
||||
string phone = 2; // 手机号码
|
||||
string code = 3; // 验证码
|
||||
int64 agency_id=4; // 代理ID
|
||||
int64 staff_id=5; // 工作人员ID
|
||||
int64 owner_id=6 [json_name="owner_id"];// 所属ID
|
||||
string owner_identity = 7 [json_name="owner_identity"];// 所属唯一码
|
||||
}
|
||||
|
||||
message LoginReply {
|
||||
int64 id=1;
|
||||
string identity = 2; //用户唯一码
|
||||
string token = 3; //用户凭证
|
||||
map<string, string> extend = 4; //扩展字段
|
||||
VerifyStatus verify_status = 5; // 用户验证状态
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user