更新邮件配置
PUT
/tool/email请求参数
Body 参数application/json
id
integer | null
可选
host
string | null
必需
邮件服务器SMTP地址
port
integer | null
必需
邮件服务器SMTP端口
sslPort
integer | null
必需
pass
string | null
必需
fromUser
string | null
发件人邮箱
user
string | null
发件者用户名
delFlag
integer | null
可选
逻辑删除 0存在1删除
sslEnable
integer | null
可选
是否启用 ssl port 0不启用 1启用
示例
{
"id": 0,
"host": "string",
"port": 0,
"sslPort": 0,
"pass": "string",
"fromUser": "string",
"user": "string",
"delFlag": 0,
"sslEnable": 0
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer | null
可选
返回状态码:返回200表示请求接口成功,非200表示请求接口失败
msg
string | null
返回消息
data
boolean | null
返回数据
示例
{
"code": 0,
"msg": "",
"data": false
}
最后修改时间: 10 months ago