- 授权
- 验证码
- GitHub OAuth2
- LinuxDo OAuth2
- 系统API
- 系统Casbin权限
- 系统部门
- 系统字典数据
- 系统字典类型
- 系统角色
- 系统用户
- 登录日志
- 操作日志
- redis监控
- 服务 器监控
- 代码生成
- 任务
- 系统数据权限规则
- 系统通知公告
- 系统参数配置
- 系统菜单
- 系统令牌
- 系统上传
- 系统插件
分页获取所有用户
GET
/api/v1/sys/users
系统用户
最后修改时间:2025-04-16 13:07:52
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
dept
Dept
Any of
username
Username
Any of
phone
Phone
Any of
status
Status
Any of
page
integer
Page
>= 1
默认值:
1
size
integer
Size
<= 200> 0
默认值:
20
返回响应
🟢200成功
application/json
Body
code
integer
Code
默认值:
200
msg
string
Msg
默认值:
请求成功
data
object (PageData[GetUserInfoWithRelationDetail])
必需
items
array[object (GetUserInfoWithRelationDetail) {16}]
Items
total
integer
Total
page
integer
Page
size
integer
Size
total_pages
integer
Total Pages
links
object (_Links)
分页链接
示例
{
"code": 200,
"msg": "请求成功",
"data": {
"items": [
{
"dept_id": 0,
"username": "string",
"nickname": "string",
"email": "user@example.com",
"phone": "string",
"id": 0,
"uuid": "string",
"avatar": "string",
"status": 0,
"is_superuser": true,
"is_staff": true,
"is_multi_login": true,
"join_time": "2019-08-24T14:15:22Z",
"last_login_time": "2019-08-24T14:15:22Z",
"dept": {
"name": "string",
"parent_id": 0,
"sort": 0,
"leader": "string",
"phone": "string",
"email": "user@example.com",
"status": 0,
"id": 0,
"del_flag": true,
"created_time": "2019-08-24T14:15:22Z",
"updated_time": "2019-08-24T14:15:22Z"
},
"roles": [
{
"name": "string",
"status": 0,
"remark": "string",
"id": 0,
"created_time": "2019-08-24T14:15:22Z",
"updated_time": "2019-08-24T14:15:22Z",
"menus": [],
"rules": []
}
]
}
],
"total": 0,
"page": 0,
"size": 0,
"total_pages": 0,
"links": {
"first": "string",
"last": "string",
"self": "string",
"next": "string",
"prev": "string"
}
}
}
🟠422参数错误