获取管理员列表
POST
/myauth/web/getAdminList
请求参数
Header 参数
token
string
必需
示例值:
123
Body 参数application/json
id
string
ID
user
string
账号
qq
string
QQ
regTime
integer
注册时间戳
lastTime
integer
最后登录的时间戳
lastIp
string
最后登录的IP
status
integer
状态
role
integer
角色ID
pageIndex
integer
必需
pageSize
integer
必需
orders
array [object {2}]
可选
column
string
字段名
asc
boolean
是否正序排序
示例
{
"user": "asd",
"qq": "1330166565",
"regTime": 123123123,
"lastTime": 123123123,
"lastIp": "127.0.0.1",
"pageIndex": 1,
"pageSize": 10
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/web/getAdminList' \
--header 'token: 123' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": "asd",
"qq": "1330166565",
"regTime": 123123123,
"lastTime": 123123123,
"lastIp": "127.0.0.1",
"pageIndex": 1,
"pageSize": 10
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {13}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 3,
"user": "daen",
"pass": "asdad",
"qq": "1233465",
"regTime": 1646239076,
"lastTime": null,
"lastIp": null,
"token": null,
"status": 1
},
{
"id": 4,
"user": "xiaomo",
"pass": "fgjfgj",
"qq": "1264235",
"regTime": 1646239076,
"lastTime": null,
"lastIp": null,
"token": null,
"status": 1
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1646320913832
}
🔴500错误
修改于 2022-05-11 05:18:15