135 lines
2.8 KiB
Markdown
135 lines
2.8 KiB
Markdown
# Info
|
||
|
||
Passport(会员通行证)模块-数据
|
||
*此模块需要Token验证
|
||
|
||
- [/passport.Info/Bind](#passportinfobind)
|
||
- [/passport.Info/GetData](#passportinfogetdata)
|
||
- [/passport.Info/SetData](#passportinfosetdata)
|
||
- [/passport.Info/SetPassword](#passportinfosetpassword)
|
||
- [/passport.Info/Statistics](#passportinfostatistics)
|
||
|
||
## /passport.Info/Bind
|
||
|
||
绑定资料
|
||
|
||
|
||
### Request
|
||
```javascript
|
||
{
|
||
action: "", // type<string>, 操作动作
|
||
phone: "", // type<string>, 手机号码 必填
|
||
code: "", // type<string>, 验证码
|
||
password: "", // type<string>, 密码 必填
|
||
nickname: "", // type<string>, 昵称
|
||
}
|
||
```
|
||
|
||
### Reply
|
||
```javascript
|
||
{
|
||
status: "0", // type<int64>, 状态码
|
||
identity: "", // type<string>, 标识码
|
||
message: "", // type<string>, 状态说明
|
||
timeseq: "0", // type<int64>, 响应时间序列
|
||
}
|
||
```
|
||
## /passport.Info/GetData
|
||
|
||
获取会员的所有信息数据
|
||
|
||
|
||
### Request
|
||
```javascript
|
||
{}
|
||
```
|
||
|
||
### Reply
|
||
```javascript
|
||
{
|
||
account: "", // type<string>, 帐号
|
||
phone: "", // type<string>, 手机号
|
||
nickname: "", // type<string>, 昵称
|
||
avatar: "", // type<string>, 头像
|
||
birthday: "", // type<string>, 生日
|
||
sex: 0, // type<int32>, 性别,1为男性,2为女性
|
||
province: 0, // type<int32>, 省
|
||
city: 0, // type<int32>, 市
|
||
area: 0, // type<int32>, 区
|
||
sign: "", // type<string>, 签名
|
||
approve: 0, // type<int32>, 状态:-2,认证未通过,0为未认证,1为审核中,2为认证成功
|
||
}
|
||
```
|
||
## /passport.Info/SetData
|
||
|
||
更新会员的信息数据
|
||
字段值为空或是0,将不更新此数据
|
||
|
||
|
||
### Request
|
||
```javascript
|
||
{
|
||
nickname: "", // type<string>, 昵称
|
||
avatar: "", // type<string>, 头像
|
||
birthday: "", // type<string>, 生日
|
||
sex: 0, // type<int32>, 性别,1为男性,2为女性
|
||
province: 0, // type<int32>, 省
|
||
city: 0, // type<int32>, 市
|
||
area: 0, // type<int32>, 区
|
||
sign: "", // type<string>, 签名
|
||
}
|
||
```
|
||
|
||
### Reply
|
||
```javascript
|
||
{
|
||
status: "0", // type<int64>, 状态码
|
||
identity: "", // type<string>, 标识码
|
||
message: "", // type<string>, 状态说明
|
||
timeseq: "0", // type<int64>, 响应时间序列
|
||
}
|
||
```
|
||
## /passport.Info/SetPassword
|
||
|
||
更新会员的密码
|
||
|
||
|
||
### Request
|
||
```javascript
|
||
{
|
||
old_password: "", // type<string>, 旧密码
|
||
new_password: "", // type<string>, 新密码
|
||
}
|
||
```
|
||
|
||
### Reply
|
||
```javascript
|
||
{
|
||
status: "0", // type<int64>, 状态码
|
||
identity: "", // type<string>, 标识码
|
||
message: "", // type<string>, 状态说明
|
||
timeseq: "0", // type<int64>, 响应时间序列
|
||
}
|
||
```
|
||
## /passport.Info/Statistics
|
||
|
||
获取会员的相关统计数据
|
||
|
||
|
||
### Request
|
||
```javascript
|
||
{
|
||
field: [""], // list<string>, 要获取的统计数据字段。
|
||
}
|
||
```
|
||
|
||
### Reply
|
||
```javascript
|
||
{
|
||
Data: {
|
||
"": "0"
|
||
}, // map<string,int64>, 数据以Map格式输出
|
||
}
|
||
```
|
||
|