添加配置-百度
POST
/api/saveConfig最后修改时间: 8 个月前
请求参数
Body 参数application/json
platform
string
录入的平台名称
status
boolean
必需
状态 true 打开 false 关闭
level
integer
等级越高优先级越低
cfg
object
必需
配置具体配置按照平台
key
string
必需
appId
string
必需
url
string
必需
curlTimeOut
integer
必需
type
string
必需
平台类型 Baidu YouDao Google PaPaGo ChatGPT HuoShan Tencent XunFei XunFeiNiu Deepl
示例1
{
"platform": "百度1", // 录入的平台名称
"status": true, // 状态 true 打开 false 关闭
"level": 1, // 等级越高优先级越低
"cfg": { // 配置具体配置按照平台
"key": "",
"appId": "",
"url": "https://fanyi-api.baidu.com/api/trans/vip/translate",
"curlTimeOut": 1000
},
"type": "Baidu" // 平台类型 Baidu YouDao Google PaPaGo ChatGPT HuoShan Tencent XunFei XunFeiNiu Deepl
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
1000 成功 其他失败
data
array[string]
返回的数据
msg
string
系统信息
time
integer
当前系统时间
示例
{
"code": 1000,
"data": [],
"msg": "SUCCESS !!!",
"time": 1715393900901
}
最后修改时间: 8 个月前