设置通知配置
POST
/adminapi/notice.notice/set
请求参数
Header 参数
token
string
必需
默认值:
{{'38a327e6732714e2a48e0b5d3038b2cc'}}
Body 参数application/json
id
integer
必需
template
object
必需
sms
object
必需
system
object
必需
oa
object
必需
mnp
object
必需
示例
{
"id": 0,
"template": {
"sms": {
"type": "string",
"template_id": "string",
"content": "string",
"status": "string",
"is_show": true,
"tips": [
"string"
]
},
"system": {
"type": "string",
"title": "string",
"content": "string",
"status": "string",
"is_show": true,
"tips": [
"string"
]
},
"oa": {
"type": "string",
"template_id": "string",
"template_sn": "string",
"name": "string",
"first": "string",
"remark": "string",
"tpl": [
"string"
],
"status": "string",
"is_show": true,
"tips": [
"string"
]
},
"mnp": {
"type": "string",
"template_id": "string",
"template_sn": "string",
"name": "string",
"tpl": [
"string"
],
"status": "string",
"is_show": true,
"tips": [
"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 '/adminapi/notice.notice/set' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"template": {
"sms": {
"type": "string",
"template_id": "string",
"content": "string",
"status": "string",
"is_show": true,
"tips": [
"string"
]
},
"system": {
"type": "string",
"title": "string",
"content": "string",
"status": "string",
"is_show": true,
"tips": [
"string"
]
},
"oa": {
"type": "string",
"template_id": "string",
"template_sn": "string",
"name": "string",
"first": "string",
"remark": "string",
"tpl": [
"string"
],
"status": "string",
"is_show": true,
"tips": [
"string"
]
},
"mnp": {
"type": "string",
"template_id": "string",
"template_sn": "string",
"name": "string",
"tpl": [
"string"
],
"status": "string",
"is_show": true,
"tips": [
"string"
]
}
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{
"code": 1,
"show": 1,
"msg": "操作成功",
"data": []
}
修改于 2022-11-12 09:31:34