## 获取用户详情接口
~~~[api]
post:api/getUserDetail
int:id=3#用户id(id不存在时默认获取当前用户详情)
<<<
success
{
"status": "success",
"data": {
"id": 4,
"username": "sinian",
"phone": "18611174865",
"email": "568014695@qq.com",
"header_img": null,
"Authentication": 1,
"status": 1,
"role": 1,
"user_auth_id": null,
"create_time": 1556532283,
"update_time": 1556532283
}
}
<<<
error
{
"status": "error",
"error": {
"message": "未登录",
"code": 1000
}
}
~~~
| 错误状态码 | 说明 |
| --- | --- |
| 4001 | 暂无该用户 |
| 1000 | 未登录 |