Files
full/module/base/passport/proto/register.proto

36 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package passport;
option go_package = "bsm/full/module/base/passport/pb;passport";
import "module/base/passport/proto/const.proto";
// Passport-通行证模块-注册
service Register{
// 帐号密码注册
rpc Pwd(RegisterRequest) returns (RegisterReply) {}
// 手机验证码注册
rpc Code(RegisterRequest) returns (RegisterReply) {}
}
message RegisterRequest {
string country = 1; // 国家码,eg CN US
string email = 2; //邮箱
string account = 3; //帐号
string phone = 4; //手机号
string password = 5; //密码
string code = 6; //验证码
int64 agency_id=7; // 代理ID
int64 staff_id=8; // 工作人员ID
int64 owner_id=9 [json_name="owner_id"];// 所属ID
string owner_identity = 10 [json_name="owner_identity"];// 所属唯一码
}
message RegisterReply {
int64 id=1;
string identity = 2; //用户唯一码
string token = 4; //用户Header所需Token
map<string, string> extend = 5; //扩展字段
base_passport_blocks.VerifyStatus verify_status = 6; // 用户验证状态
}