获取用户信息
基本信息
请求方式 GET
请求地址 /api/v1/account/user/{id}
请求头
请参考通用参数
URI 请求参数
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| id | string | 否 | 用户ID。 |
响应参数
| 名称 | 类型 | 是否必须 | 备注 | 其他信息 |
|---|---|---|---|---|
| code | string | 非必须 | ||
| msg | string | 非必须 | ||
| result | object | 非必须 | 根据ID查询用户响应 | |
| ├─ id | string | 非必须 | ID | |
| ├─ username | string | 非必须 | 用户名 | |
| string | 非必须 | 邮箱 | ||
| ├─ phone | string | 非必须 | 手机号 | |
| ├─ avatar | string | 非必须 | 头像URL | |
| ├─ status | string | 非必须 | 状态 | |
| ├─ fullName | string | 非必须 | 姓名 | |
| ├─ nickName | string | 非必须 | 昵称 | |
| ├─ idCard | string | 非必须 | 身份证号 | |
| ├─ address | string | 非必须 | 地址 | |
| ├─ authTotal | string | 非必须 | 认证次数 | |
| ├─ lastAuthIp | string | 非必须 | 最后登录 IP | |
| ├─ lastAuthTime | string | 非必须 | 上次认证时间 | format: date-time |
| ├─ dataOrigin | string | 非必须 | 数据来源 | |
| ├─ phoneVerified | boolean | 非必须 | 手机验证有效 | |
| ├─ emailVerified | boolean | 非必须 | 邮箱验证有效 | |
| ├─ externalId | string | 非必须 | 外部ID | |
| ├─ expireDate | string | 非必须 | 过期时间 | format: date |
| ├─ createTime | string | 非必须 | 创建时间 | format: date-time |
| ├─ updateTime | string | 非必须 | 修改时间 | format: date-time |
| ├─ remark | string | 非必须 | 备注 | |
| requestId | string | 非必须 |
错误码
请参考通用错误码