用户列表-分页
GET
/user请求参数
Query 参数
username
string
可选
示例值:
admin
pageNo
integer
必需
示例值:
1
pageSize
integer
必需
示例值:
10
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
pageData
array [object {10}]
必需
total
integer
必需
originUrl
string
必需
示例
{
"code": 0,
"message": "OK",
"data": {
"pageData": [
{
"id": 1,
"username": "admin",
"enable": true,
"createTime": "2023-11-18T08:18:59.150Z",
"updateTime": "2023-11-18T08:18:59.150Z",
"roles": [
{
"id": 1,
"code": "SUPER_ADMIN",
"name": "Super Admin",
"enable": true
},
{
"id": 2,
"code": "ROLE_QA",
"name": "Inspector",
"enable": true
}
],
"gender": null,
"avatar": "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",
"address": null,
"email": null
},
{
"id": 5,
"username": "咩咩咩咩咩咩啊",
"enable": true,
"createTime": "2024-10-17T23:45:04.772Z",
"updateTime": "2024-10-17T23:45:04.772Z",
"roles": [
{
"id": 1,
"code": "SUPER_ADMIN",
"name": "Super Admin",
"enable": true
}
],
"gender": null,
"avatar": "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",
"address": null,
"email": null
}
],
"total": 2
},
"originUrl": "/user?username=&pageNo=1&pageSize=10"
}
最后修改时间: 13 天前