## 獲取用戶詳情接口
~~~[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 | 未登錄 |