获取封禁列表
POST
/myauth/web/getBanList
请求参数
Header 参数
token
string
必需
示例值:
123
Body 参数application/json
value
string
封禁对象
addTime
integer
封禁添加时间
toTime
integer
封禁到期时 间
why
string
封禁原因
type
integer
封禁类型
fromSoftId
integer
必需
pageIndex
integer
必需
pageSize
integer
必需
orders
array [object {2}]
可选
column
string
字段名
asc
boolean
是否正序排序
示例
{
"fromSoftId": 1,
"pageIndex": 1,
"pageSize": 10,
"why": null,
"type": null,
"toTime": null,
"addTime": null,
"value": null
}
示例代码
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/getBanList' \
--header 'token: 123' \
--header 'Content-Type: application/json' \
--data-raw '{
"fromSoftId": 1,
"pageIndex": 1,
"pageSize": 10,
"why": null,
"type": null,
"toTime": null,
"addTime": null,
"value": null
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {8}]
必需
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": 1,
"value": "123",
"addTime": 1646234643,
"toTime": 1646244643,
"why": "你猜",
"fromSoftId": 1,
"type": 1,
"fromSoftName": "MyQQ"
},
{
"id": 2,
"value": "127.0.0.1",
"addTime": 1646234743,
"toTime": -1,
"why": null,
"fromSoftId": 1,
"type": 2,
"fromSoftName": "MyQQ"
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1646234834494
}
🔴500错误
修改于 2022-03-03 14:42:57