管理员信息
GET
/api/system/admin/self请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
user
object
必需
permissions
array[string]
权限数组
示例
{
"code": 200,
"msg": "成功",
"data": {
"user": {
"id": 1,
"username": "admin",
"nickname": "红红",
"avatar": "http://127.0.0.1/uploads/20220213/123.png",
"isMultipoint": 0,
"isDisable": 0,
"lastLoginIp": "172.23.240.1",
"lastLoginTime": "2022-04-15 09:45:29",
"createTime": "2022-01-16 16:26:39",
"updateTime": "2022-01-16 16:26:39"
},
"permissions": [
"system:admin:lists",
"system:admin:detail",
"system:admin:add",
"system:admin:edit",
"system:admin:del",
"system:admin:disablel",
"system:role:lists",
"system:role:detail",
"system:role:add",
"system:role:edit",
"system:role:del",
"system:menu:lists"
]
}
}
最后修改时间: 2 年前