build pb shell
This commit is contained in:
173
sdk/docs/passport/account.md
Normal file
173
sdk/docs/passport/account.md
Normal file
@@ -0,0 +1,173 @@
|
||||
# Account
|
||||
|
||||
assport通行证模块-帐号数据
|
||||
|
||||
- [/passport.Account/Get](#passportaccountget)
|
||||
- [/passport.Account/SetData](#passportaccountsetdata)
|
||||
- [/passport.Account/SetPassword](#passportaccountsetpassword)
|
||||
- [/passport.Account/TagCreate](#passportaccounttagcreate)
|
||||
- [/passport.Account/TagRemove](#passportaccounttagremove)
|
||||
- [/passport.Account/Statistics](#passportaccountstatistics)
|
||||
|
||||
## /passport.Account/Get
|
||||
|
||||
通过会员所有信息
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
identity: "", // type<string>, 唯一标识
|
||||
account: "", // type<string>, 帐号
|
||||
phone: "", // type<string>, 手机号码 必填
|
||||
email: "", // type<string>, 验证码
|
||||
rights: "", // type<string>, 权限
|
||||
nickname: "", // type<string>, 昵称
|
||||
avatar: "", // type<string>, 头像
|
||||
birthday: "", // type<string>, 生日
|
||||
sex: 0, // type<int32>, 性别,1为男性,2为女性
|
||||
country: "", // type<string>, 国家
|
||||
province: "", // type<string>, 省
|
||||
city: "", // type<string>, 市
|
||||
area: "", // type<string>, 区
|
||||
sign: "", // type<string>, 签名
|
||||
cover: "", // type<string>, 背景&封面
|
||||
score: 0, // type<int32>, 积分
|
||||
level: 0, // type<int32>, 等级
|
||||
verify_status: {
|
||||
email_verify: 0, // type<int32>, 邮箱是否已验证
|
||||
phone_verify: 0, // type<int32>, 手机是否已验证
|
||||
face_verify: 0, // type<int32>, 人脸或照片是否已验证
|
||||
document_verify: 0, // type<int32>, 证件是否已验证
|
||||
kyc_verify: 0, // type<int32>, 实名是否已验证
|
||||
}, // type<VerifyStatus>, 用户验证状态
|
||||
tags: [{
|
||||
name: "", // type<string>
|
||||
icon: "", // type<string>
|
||||
}], // list<TagItem>, 用户标签
|
||||
}
|
||||
```
|
||||
## /passport.Account/SetData
|
||||
|
||||
更新会员的信息数据,字段值为空或是0,将不更新此数据
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{
|
||||
nickname: "", // type<string>, 昵称
|
||||
avatar: "", // type<string>, 头像
|
||||
birthday: "", // type<string>, 生日
|
||||
sex: 0, // type<int32>, 性别,1为男性,2为女性
|
||||
country: "", // type<string>, 国家
|
||||
province: "", // type<string>, 省
|
||||
city: "", // type<string>, 市
|
||||
area: "", // type<string>, 区
|
||||
sign: "", // type<string>, 签名
|
||||
cover: "", // type<string>, 背景&封面
|
||||
score: 0, // type<int32>, 积分
|
||||
level: 0, // type<int32>, 等级
|
||||
}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
code: 0, // type<int32>, 状态码
|
||||
message: "", // type<string>, 状态说明
|
||||
details: "", // type<string>, 数据
|
||||
timeseq: "0", // type<int64>, 响应时间序列
|
||||
}
|
||||
```
|
||||
## /passport.Account/SetPassword
|
||||
|
||||
更新会员的密码
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{
|
||||
old_password: "", // type<string>, 旧密码
|
||||
new_password: "", // type<string>, 新密码
|
||||
}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
code: 0, // type<int32>, 状态码
|
||||
message: "", // type<string>, 状态说明
|
||||
details: "", // type<string>, 数据
|
||||
timeseq: "0", // type<int64>, 响应时间序列
|
||||
}
|
||||
```
|
||||
## /passport.Account/TagCreate
|
||||
|
||||
新增标签
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{
|
||||
name: "", // type<string>
|
||||
icon: "", // type<string>
|
||||
}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
code: 0, // type<int32>, 状态码
|
||||
message: "", // type<string>, 状态说明
|
||||
details: "", // type<string>, 数据
|
||||
timeseq: "0", // type<int64>, 响应时间序列
|
||||
}
|
||||
```
|
||||
## /passport.Account/TagRemove
|
||||
|
||||
删除标签
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{
|
||||
id: "0", // type<int64>, 唯一ID
|
||||
identity: "", // type<string>, 唯一码
|
||||
}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
code: 0, // type<int32>, 状态码
|
||||
message: "", // type<string>, 状态说明
|
||||
details: "", // type<string>, 数据
|
||||
timeseq: "0", // type<int64>, 响应时间序列
|
||||
}
|
||||
```
|
||||
## /passport.Account/Statistics
|
||||
|
||||
获取会员的相关统计数据
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{
|
||||
field: [""], // list<string>, 要获取的统计数据字段。
|
||||
}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
Data: {
|
||||
"": "0"
|
||||
}, // map<string,int64>, 数据以Map格式输出
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user