client/docs/passport/forget.md

55 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Forget
Passport-通行证模块
- [/passport.Forget/Verify](#passportforgetverify)
- [/passport.Forget/Reset](#passportforgetreset)
## /passport.Forget/Verify
验证手机号和验证码
### Request
```javascript
{
phone: "", // type<string>, 手机号
code: "", // type<string>, 验证码
}
```
### Reply
```javascript
{
status: "0", // type<int64>, 状态码
identity: "", // type<string>, 标识码
message: "", // type<string>, 状态说明
timeseq: "0", // type<int64>, 响应时间序列
}
```
## /passport.Forget/Reset
重罢密码
### Request
```javascript
{
identity: "", // type<string>, 唯一码
password: "", // type<string>, 密码
}
```
### Reply
```javascript
{
identity: "", // type<string>, 用户唯一码
data_bind: "", // type<string>, 数据绑定的相关说明,PASS通过NOPHONE没有绑定手机号NOPWD没有设置密码NOBIND没有手机号同时没有密码
token: "", // type<string>, 用户凭证
extend: {
"": ""
}, // map<string,string>, 扩展字段
}
```