用户详情
GET
https://m1.apifoxmock.com/m1/3776410-0-default/user/detail
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://m1.apifoxmock.com/m1/3776410-0-default/user/detail'
返回响应
🟢200成功
application/json
Body
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"
}
修改于 2023-12-19 00:51:18