mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-02 03:56:34 +08:00
优化消息通知相关代码
This commit is contained in:
@@ -104473,14 +104473,14 @@
|
||||
{
|
||||
"id": 1,
|
||||
"values": {
|
||||
"description": "通过邮件发送通知",
|
||||
"description": "通过邮件发送通知。",
|
||||
"id": "1",
|
||||
"isOn": "1",
|
||||
"name": "邮件",
|
||||
"order": "8",
|
||||
"state": "1",
|
||||
"type": "email",
|
||||
"userDescription": "接收人邮箱地址"
|
||||
"userDescription": "接收人邮箱地址。"
|
||||
},
|
||||
"uniqueFields": [
|
||||
"type"
|
||||
@@ -104490,14 +104490,14 @@
|
||||
{
|
||||
"id": 2,
|
||||
"values": {
|
||||
"description": "通过HTTP请求发送通知",
|
||||
"description": "通过HTTP请求发送通知。",
|
||||
"id": "2",
|
||||
"isOn": "1",
|
||||
"name": "WebHook",
|
||||
"order": "7",
|
||||
"state": "1",
|
||||
"type": "webHook",
|
||||
"userDescription": "通过${MessageUser}参数传递到URL上"
|
||||
"userDescription": "通过${MessageUser}参数传递到URL上。"
|
||||
},
|
||||
"uniqueFields": [
|
||||
"type"
|
||||
@@ -104507,14 +104507,14 @@
|
||||
{
|
||||
"id": 3,
|
||||
"values": {
|
||||
"description": "通过运行脚本发送通知",
|
||||
"description": "通过运行脚本发送通知。",
|
||||
"id": "3",
|
||||
"isOn": "1",
|
||||
"name": "脚本",
|
||||
"order": "6",
|
||||
"state": "1",
|
||||
"type": "script",
|
||||
"userDescription": "可以在脚本中使用${MessageUser}来获取这个标识"
|
||||
"userDescription": "可以在脚本中使用${MessageUser}来获取这个标识。"
|
||||
},
|
||||
"uniqueFields": [
|
||||
"type"
|
||||
@@ -104524,14 +104524,14 @@
|
||||
{
|
||||
"id": 4,
|
||||
"values": {
|
||||
"description": "通过钉钉群机器人发送通知消息",
|
||||
"description": "通过钉钉群机器人发送通知消息。",
|
||||
"id": "4",
|
||||
"isOn": "1",
|
||||
"name": "钉钉群机器人",
|
||||
"order": "5",
|
||||
"state": "1",
|
||||
"type": "dingTalk",
|
||||
"userDescription": "要At(@)的群成员的手机号,多个手机号用英文逗号隔开,也可以为空"
|
||||
"userDescription": "要At(@)的群成员的手机号,多个手机号用英文逗号隔开,也可以为空。"
|
||||
},
|
||||
"uniqueFields": [
|
||||
"type"
|
||||
@@ -104541,7 +104541,7 @@
|
||||
{
|
||||
"id": 5,
|
||||
"values": {
|
||||
"description": "通过企业微信应用发送通知消息",
|
||||
"description": "通过企业微信应用发送通知消息。",
|
||||
"id": "5",
|
||||
"isOn": "1",
|
||||
"name": "企业微信应用",
|
||||
@@ -104558,14 +104558,14 @@
|
||||
{
|
||||
"id": 6,
|
||||
"values": {
|
||||
"description": "通过微信群机器人发送通知消息",
|
||||
"description": "通过微信群机器人发送通知消息。",
|
||||
"id": "6",
|
||||
"isOn": "1",
|
||||
"name": "企业微信群机器人",
|
||||
"order": "3",
|
||||
"state": "1",
|
||||
"type": "qyWeixinRobot",
|
||||
"userDescription": "要At(@)的群成员的手机号,多个手机号用英文逗号隔开,也可以为空"
|
||||
"userDescription": "要At(@)的群成员的手机号,多个手机号用英文逗号隔开,也可以为空。"
|
||||
},
|
||||
"uniqueFields": [
|
||||
"type"
|
||||
@@ -104575,14 +104575,14 @@
|
||||
{
|
||||
"id": 7,
|
||||
"values": {
|
||||
"description": "通过\u003ca href=\"https://www.aliyun.com/product/sms?spm=5176.11533447.1097531.2.12055cfa6UnIix\" target=\"_blank\"\u003e阿里云短信服务\u003c/a\u003e发送短信",
|
||||
"description": "通过\u003ca href=\"https://www.aliyun.com/product/sms\" target=\"_blank\"\u003e阿里云短信服务\u003c/a\u003e发送短信。",
|
||||
"id": "7",
|
||||
"isOn": "1",
|
||||
"name": "阿里云短信",
|
||||
"order": "2",
|
||||
"state": "1",
|
||||
"type": "aliyunSms",
|
||||
"userDescription": "接收消息的手机号"
|
||||
"userDescription": "接收消息的手机号。"
|
||||
},
|
||||
"uniqueFields": [
|
||||
"type"
|
||||
@@ -104592,14 +104592,14 @@
|
||||
{
|
||||
"id": 8,
|
||||
"values": {
|
||||
"description": "通过机器人向群或者某个用户发送消息,需要确保所在网络能够访问Telegram API服务",
|
||||
"description": "通过机器人向群或者某个用户发送消息,需要确保所在网络能够访问Telegram API服务。",
|
||||
"id": "8",
|
||||
"isOn": "1",
|
||||
"name": "Telegram机器人",
|
||||
"order": "1",
|
||||
"state": "1",
|
||||
"type": "telegram",
|
||||
"userDescription": "群或用户的Chat ID,通常是一个数字,可以通过和 @get_id_bot 建立对话并发送任意消息获得"
|
||||
"userDescription": "群或用户的Chat ID,通常是一个数字,可以通过和 @get_id_bot 建立对话并发送任意消息获得。"
|
||||
},
|
||||
"uniqueFields": [
|
||||
"type"
|
||||
@@ -104612,7 +104612,7 @@
|
||||
"name": "edgeMessageReceivers",
|
||||
"engine": "InnoDB",
|
||||
"charset": "utf8mb4_general_ci",
|
||||
"definition": "CREATE TABLE `edgeMessageReceivers` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `role` varchar(32) DEFAULT 'node' COMMENT '节点角色',\n `clusterId` int(11) unsigned DEFAULT '0' COMMENT '集群ID',\n `nodeId` int(11) unsigned DEFAULT '0' COMMENT '节点ID',\n `serverId` int(11) unsigned DEFAULT '0' COMMENT '服务ID',\n `type` varchar(255) DEFAULT NULL COMMENT '类型',\n `params` json DEFAULT NULL COMMENT '参数',\n `recipientId` int(11) unsigned DEFAULT '0' COMMENT '接收人ID',\n `recipientGroupId` int(11) unsigned DEFAULT '0' COMMENT '接收人分组ID',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n PRIMARY KEY (`id`),\n KEY `clusterId` (`clusterId`),\n KEY `nodeId` (`nodeId`),\n KEY `serverId` (`serverId`),\n KEY `type` (`type`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知接收人'",
|
||||
"definition": "CREATE TABLE `edgeMessageReceivers` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `role` varchar(32) DEFAULT 'node' COMMENT '节点角色',\n `clusterId` int(11) unsigned DEFAULT '0' COMMENT '集群ID',\n `nodeId` int(11) unsigned DEFAULT '0' COMMENT '节点ID',\n `serverId` int(11) unsigned DEFAULT '0' COMMENT '服务ID',\n `type` varchar(255) DEFAULT NULL COMMENT '类型',\n `params` json DEFAULT NULL COMMENT '参数',\n `recipientId` int(11) unsigned DEFAULT '0' COMMENT '接收人ID',\n `recipientGroupId` int(11) unsigned DEFAULT '0' COMMENT '接收人分组ID',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n PRIMARY KEY (`id`),\n KEY `clusterId` (`clusterId`),\n KEY `nodeId` (`nodeId`),\n KEY `serverId` (`serverId`),\n KEY `type` (`type`),\n KEY `recipientId` (`recipientId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知接收人'",
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -104675,6 +104675,10 @@
|
||||
{
|
||||
"name": "type",
|
||||
"definition": "KEY `type` (`type`) USING BTREE"
|
||||
},
|
||||
{
|
||||
"name": "recipientId",
|
||||
"definition": "KEY `recipientId` (`recipientId`) USING BTREE"
|
||||
}
|
||||
],
|
||||
"records": []
|
||||
|
||||
Reference in New Issue
Block a user