- 🦊一分钟,了解 Apifox !
- 极客空间
- 接口文档
- admin
- dashboard
- trends
- image
- imageCategory
- article
- category
- tags
- user
- guestbook
- source
- animation
- resume
- friendlink
- web
获取用户信息
开发中
GET
/api/admin/user/usetInfo
用户
请求参数
Header 参数
Authorization
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:3000/api/admin/user/usetInfo' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
code
string
响应码
message
string
响应信息
data
object
用户信息
_id
string
ID标识
username
string
用户名
gender
integer
用户性别
password
string
用户密码
phone
string
电话号码
email
string
邮箱
introduction
string
用户简介
avatar
string
用户头像
github
string
giuthub地址
gitee
string
gitee地址
csdn
string
csdn地址
nickname
string
用户昵称
aboutInfo
object
用户信息
示例
{
"code": "200",
"message": "获取用户信息成功",
"data": {
"avatar": "http://localhost:3000/images/user/3b8f47bbe14300ee5e7154786e79d31e.jpeg",
"csdn": "https://blog.csdn.net/2301_76380626",
"email": "admin@163.com",
"gender": 1,
"gitee": "https://gitee.com/DT-guyan",
"github": "https://github.com/guyan-tttt",
"introduction": "我是管理员",
"nickname": "顾言",
"password": "123456",
"phone": "17898789876",
"username": "admin",
"__v": 0,
"_id": "66835388cfda9e40449a6a07"
}
}
修改于 2024-07-05 02:44:33