用户列表-分页
GET
https://m1.apifoxmock.com/m1/3776410-0-default/user
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
username
string
可选
示例值:
admin
pageNo
integer
必需
示例值:
1
pageSize
integer
必需
示例值:
10
示例代码
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?username=admin&pageNo=1&pageSize=10'
返回响应
🟢200成功
application/json
Body
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": "超级管理员",
"enable": true
},
{
"id": 2,
"code": "ROLE_QA",
"name": "质检员",
"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": 1
},
"originUrl": "/user?pageNo=1&pageSize=10"
}
修改于 2023-12-19 00:55:53