71 lines
1.6 KiB
Markdown
71 lines
1.6 KiB
Markdown
# Register
|
|
|
|
Passport-通行证模块-注册
|
|
|
|
- [/passport.Register/Pwd](#passportregisterpwd)
|
|
- [/passport.Register/Code](#passportregistercode)
|
|
|
|
## /passport.Register/Pwd
|
|
|
|
帐号密码注册
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
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
|
|
```javascript
|
|
{
|
|
id: "0", // type<int64>
|
|
identity: "", // type<string>, 用户唯一码
|
|
token: "", // type<string>, 用户Header所需Token
|
|
extend: {
|
|
"": ""
|
|
}, // map<string,string>, 扩展字段
|
|
}
|
|
```
|
|
## /passport.Register/Code
|
|
|
|
手机验证码注册
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
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
|
|
```javascript
|
|
{
|
|
id: "0", // type<int64>
|
|
identity: "", // type<string>, 用户唯一码
|
|
token: "", // type<string>, 用户Header所需Token
|
|
extend: {
|
|
"": ""
|
|
}, // map<string,string>, 扩展字段
|
|
}
|
|
```
|
|
|