分页查询所有用户(root)
GET
/api/user/get/getAllUsers请求参数
Query 参数
currentPage
string
必需
示例值:
1
pageSize
string
必需
示例值:
5
Header 参数
Authorization
string
必需
示例值:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6IlN1cGVyVklQIiwiZXhwIjoxNjc4ODY0NTY2LCJ1c2VySWQiOjQxLCJ1c2VybmFtZSI6InRlc3QwMyJ9.xgDf-F6EexLRZc8ZtGKh_W-onzyBVtPXvidpKCILww8
示例代码
返回响应
成功样例(200)
失败样例(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
必需
errCode
null
必需
errMessage
null
必需
data
object
必需
users
array [object {8}]
必需
currentPage
integer
必需
pageSize
integer
必需
total
integer
必需
示例成功样例
{
"success": true,
"errCode": null,
"errMessage": null,
"data": {
"users": [
{
"extValues": {},
"userId": 2,
"userName": "abc",
"userPassword": null,
"userVipLevel": 0,
"userNickname": null,
"userEmail": null,
"userUrl": null
},
{
"extValues": {},
"userId": 4,
"userName": "qwe",
"userPassword": "234",
"userVipLevel": 0,
"userNickname": null,
"userEmail": "135@qq.com",
"userUrl": null
},
{
"extValues": {},
"userId": 9,
"userName": "qwe",
"userPassword": null,
"userVipLevel": 0,
"userNickname": null,
"userEmail": "135@qq.com",
"userUrl": null
},
{
"extValues": {},
"userId": 13,
"userName": "wht",
"userPassword": "da802a5e40c7ce30bbde2337cf4cbff1",
"userVipLevel": -1,
"userNickname": null,
"userEmail": "123@example.com",
"userUrl": null
},
{
"extValues": {},
"userId": 16,
"userName": "test",
"userPassword": "da802a5e40c7ce30bbde2337cf4cbff1",
"userVipLevel": 1,
"userNickname": null,
"userEmail": "123@example.com",
"userUrl": null
}
],
"currentPage": 1,
"pageSize": 5,
"total": 11
}
}
最后修改时间: 2 年前