feat(notify): Add TNotifyChannel 'feishu'

This commit is contained in:
Rain
2020-04-10 14:48:53 +08:00
parent 14accd7731
commit 2a72f35138
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -141,6 +141,7 @@ func NotifyNormal(recipientId []string, isGroup bool, event string, data jsonuti
notify.NotifyByEmail,
notify.NotifyByDingTalk,
notify.NotifyByWebConsole,
notify.NotifyByFeishu,
} {
RawNotify(recipientId, isGroup,
c,
@@ -155,6 +156,7 @@ func NotifyImportant(recipientId []string, isGroup bool, event string, data json
notify.NotifyByDingTalk,
notify.NotifyByMobile,
notify.NotifyByWebConsole,
notify.NotifyByFeishu,
} {
RawNotify(recipientId, isGroup,
c,
@@ -169,6 +171,7 @@ func NotifyCritical(recipientId []string, isGroup bool, event string, data jsonu
notify.NotifyByDingTalk,
notify.NotifyByMobile,
notify.NotifyByWebConsole,
notify.NotifyByFeishu,
} {
RawNotify(recipientId, isGroup,
c,
+1
View File
@@ -27,4 +27,5 @@ const (
NotifyByMobile = TNotifyChannel("mobile")
NotifyByDingTalk = TNotifyChannel("dingtalk")
NotifyByWebConsole = TNotifyChannel("webconsole")
NotifyByFeishu = TNotifyChannel("feishu")
)