# 查看用户详情
# 调用方式: GET
# 接口地址:
url1:https://api.freelog.com/v2/users/{userIdOrMobileOrEmail}
url2:https://api.freelog.com/v2/users/detail?userId={userId}&username={username}&mobile={mobile}&email={email}
1
2
2
# url1传入参数说明:
| 参数 | 必选 | 类型及范围 | 说明 |
|---|---|---|---|
| userIdOrMobileOrEmail | 必选 | string | 用户ID,或手机号或邮件 |
# url2传入参数说明:
| 参数 | 必选 | 类型及范围 | 说明 |
|---|---|---|---|
| userId | 可选 | int | 用户ID |
| username | 可选 | string | 用户名 |
| mobile | 可选 | string | 手机号 |
| 可选 | string | 邮箱 |
# 返回说明:
| 返回值字段 | 字段类型 | 字段说明 |
|---|---|---|
| userId | int | 用户ID |
| userName | string | 用户姓名 |
| nickname | string | 用户昵称 |
| string | email地址 | |
| tokenSn | string | 当前jwtToken的令牌编号 |
| mobile | string | 手机号码 |
| userRole | int | 用户现有角色 [详见附表] |
| createDate | date | 创建日期 |
| updateDate | date | 数据最后更新日期 |
| headImage | string | 用户头像URL |
| userType | int | 用户类型 0:初始账户 1:内测账户 (此字段可以判定用户是否是内测账号) |
| status | int | 用户状态 0:正常 1:冻结 2:测试资格审核中 3:申请测试资格未通过 |
# 返回示例
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"email": "",
"mobile": "18923803593",
"headImage": "https://image.freelog.com/headImage/50017",
"userType": 1,
"status": 1,
"username": "yu",
"userId": 50003,
"tokenSn": "3374c98254b7491a9e57d08decde3e8f",
"createDate": "2019-05-14T02:02:03.054Z"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
← 获取当前登录用户信息 注册用户 →