新增
POST
http://127.0.0.1:8093/email/email/role/add
请求参数
Header 参数
Apikey
string
后台管理API秘钥
默认值:
1111
Body 参数application/json
roleTitle
string | null
规则标题
roleUseType
string | null
必需
roleUseContent
string | null
特定内容
roleRegType
string | null
必需
roleRegText1
string | null
可选
roleRegText2
string | null
可选
roleRegContent
string | null
可选
removeNr
string | null
必需
status
string | null
必需
roleDoRun
string | null
必需
roleRegText1Add
string | null
结果前补内容
roleRegText2Add
string | null
结果后补内容
proxyLock
string | null
可选
proxyHost
string | null
代理地址
proxyPort
string | null
代理端口
proxyType
string | null
可选
proxyUser
string | null
代理账号
proxyPassword
string | null
代理密码
示例
{
"roleTitle": "string",
"roleUseType": "string",
"roleUseContent": "string",
"roleRegType": "string",
"roleRegText1": "string",
"roleRegText2": "string",
"roleRegContent": "string",
"removeNr": "string",
"status": "string",
"roleDoRun": "string",
"roleRegText1Add": "string",
"roleRegText2Add": "string",
"proxyLock": "string",
"proxyHost": "string",
"proxyPort": "string",
"proxyType": "string",
"proxyUser": "string",
"proxyPassword": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:8093/email/email/role/add' \
--header 'Apikey: 1111' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
可选
success
boolean
可选
msg
string
可选
data
object
可选
timestamp
integer <int64>
可选
示例
{
"code": 0,
"success": false,
"msg": "",
"data": {},
"timestamp": 0
}
修改于 2024-04-25 14:18:32