用户详情
GET
/user/detail请求参数
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
id
integer
必需
username
string
必需
enable
boolean
必需
createTime
string
必需
updateTime
string
必需
profile
object
必需
roles
array [object {4}]
必需
currentRole
object
必需
originUrl
string
必需
示例
{
"code": 0,
"message": "OK",
"data": {
"id": 1,
"username": "admin",
"enable": true,
"createTime": "2023-11-18T08:18:59.150Z",
"updateTime": "2023-11-18T08:18:59.150Z",
"profile": {
"id": 1,
"nickName": "Admin",
"gender": null,
"avatar": "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",
"address": null,
"email": null,
"userId": 1
},
"roles": [
{
"id": 1,
"code": "SUPER_ADMIN",
"name": "超级管理员",
"enable": true
},
{
"id": 2,
"code": "ROLE_QA",
"name": "质检员",
"enable": true
}
],
"currentRole": {
"id": 1,
"code": "SUPER_ADMIN",
"name": "超级管理员",
"enable": true
}
},
"originUrl": "/user/detail"
}
最后修改时间: 1 年前