添加封禁
POST
/myauth/web/addBan
请求参数
Header 参数
token
string
必需
示例值:
2b036bd8139e44e1a8034e371d9584a7
Body 参数application/json
fromSoftId
integer
所属软件ID
value
string
封禁对象
toTime
integer
封禁到期时间
why
string
封禁原因
type
integer
封禁类型
示例
{
"fromSoftId": 1,
"toTime": null,
"value": "8.8.8.8",
"type": 2,
"why": "就封你"
}
示例代码
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/addBan' \
--header 'token: 2b036bd8139e44e1a8034e371d9584a7' \
--header 'Content-Type: application/json' \
--data-raw '{
"fromSoftId": 1,
"toTime": null,
"value": "8.8.8.8",
"type": 2,
"why": "就封你"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
null
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "添加成功",
"sign": "",
"result": null,
"timestamp": 1646237049225
}
🔴500错误
修改于 2022-03-16 15:13:08