1.6 KiB
1.6 KiB
Register
Passport-通行证模块-注册
/passport.Register/Pwd
帐号密码注册
Request
{
email: "", // type<string>, 邮箱
account: "", // type<string>, 帐号
phone: "", // type<string>, 手机号
password: "", // type<string>, 密码
code: "", // type<string>, 验证码
agency_id: "0", // type<int64>, 代理ID
staff_id: "0", // type<int64>, 工作人员ID
owner_id: "0", // type<int64>, 所属ID
owner_identity: "", // type<string>, 所属唯一码
}
Reply
{
id: "0", // type<int64>
identity: "", // type<string>, 用户唯一码
token: "", // type<string>, 用户Header所需Token
extend: {
"": ""
}, // map<string,string>, 扩展字段
}
/passport.Register/Code
手机验证码注册
Request
{
email: "", // type<string>, 邮箱
account: "", // type<string>, 帐号
phone: "", // type<string>, 手机号
password: "", // type<string>, 密码
code: "", // type<string>, 验证码
agency_id: "0", // type<int64>, 代理ID
staff_id: "0", // type<int64>, 工作人员ID
owner_id: "0", // type<int64>, 所属ID
owner_identity: "", // type<string>, 所属唯一码
}
Reply
{
id: "0", // type<int64>
identity: "", // type<string>, 用户唯一码
token: "", // type<string>, 用户Header所需Token
extend: {
"": ""
}, // map<string,string>, 扩展字段
}