- v1
- auth
- route
- system-manage
- miniapp
查看用户信息
GET
/api/v1/auth/user-info
v1权限认证
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/auth/user-info' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
userPhone
null
必需
userName
string
必需
userGender
string
必需
lastLogin
string
必需
updateTime
string
必需
createTime
string
必需
id
integer
必需
status
string
必需
userEmail
string
必需
nickName
string
必需
user_id
integer
必需
roles
array[string]
必需
buttons
array[string]
必需
示例
{
"code": "0000",
"msg": "OK",
"data": {
"userPhone": null,
"userName": "Soybean",
"userGender": "3",
"lastLogin": "2024-05-17 13:57:17",
"updateTime": "2024-05-17 13:57:17",
"createTime": "2024-05-16 21:31:27",
"id": 1,
"status": "1",
"userEmail": "admin@admin.com",
"nickName": "Soybean",
"user_id": 1,
"roles": [
"R_SUPER"
],
"buttons": [
"B_CODE3",
"B_refreshAPI",
"B_CODE2",
"B_Add_Del_Batch-del",
"B_CODE1"
]
}
}
修改于 2024-12-24 02:30:54