- system
- access
- app
- common
- data
- dict
- log
- module
- ops
- role
- tenant
- user
- notify
- area
- project
- slot
- dept
- job
- open
- data
获取通知模版列表
POST
/api/v1/system/notify/template/index
system/notify/templatesystemNotifyTemplate
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
page
object (PageInfo)
可选
page
integer <int64>
页码
size
integer <int64>
每页大小
orders
array[object (OrderBy) {2}]
排序
name
string
可选
notifyCode
string
应用编号
type
string
可选
示例
{
"page": {
"page": 0,
"size": 0,
"orders": [
{
"field": "string",
"sort": 0
}
]
},
"name": "string",
"notifyCode": "string",
"type": "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 '/api/v1/system/notify/template/index' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (NotifyTemplateIndexResp)
可选
list
array[object (NotifyTemplate) {11}]
通知模版列表数据
page
integer <int64>
页码
pageSize
integer <int64>
每页大小
total
integer <int64>
可选
示例
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"id": 0,
"name": "string",
"notifyCode": "string",
"type": "string",
"templateCode": "string",
"signName": "string",
"subject": "string",
"body": "string",
"desc": "string",
"channelID": 0,
"channel": {
"id": 0,
"name": "string",
"type": "string",
"desc": "string",
"webhook": "string",
"email": {
"from": "string",
"host": "string",
"secret": "string",
"nickname": "string",
"port": 0,
"isSsl": 0
},
"app": {
"appID": "string",
"appKey": "string",
"appSecret": "string"
},
"sms": {
"type": "string",
"accessKeyID": "string",
"accessKeySecret": "string",
"appID": "string",
"appKey": "string"
}
}
}
],
"page": 0,
"pageSize": 0,
"total": 0
}
}
修改于 2025-03-25 09:32:22