From e61c0e1fb553632ede854ac2e30b61d32cb0facd Mon Sep 17 00:00:00 2001 From: Appoip <99581678+Appoip@users.noreply.github.com> Date: Sat, 3 Sep 2022 19:39:44 +0800 Subject: [PATCH] Update notify.ts --- back/data/notify.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/back/data/notify.ts b/back/data/notify.ts index ec20bb6a..97eae7c2 100644 --- a/back/data/notify.ts +++ b/back/data/notify.ts @@ -4,6 +4,7 @@ export enum NotificationMode { 'serverChan' = 'serverChan', 'pushDeer' = 'pushDeer', 'bark' = 'bark', + 'chat' = 'chat' 'telegramBot' = 'telegramBot', 'dingtalkBot' = 'dingtalkBot', 'weWorkBot' = 'weWorkBot', @@ -37,6 +38,11 @@ export class PushDeerNotification extends NotificationBaseInfo { public pushDeerKey = ''; } +export class ChatNotification extends NotificationBaseInfo { + public chatUrl = ''; + public chattoken = ''; +} + export class BarkNotification extends NotificationBaseInfo { public barkPush = ''; public barkIcon = 'http://qn.whyour.cn/logo.png'; @@ -86,6 +92,7 @@ export interface NotificationInfo GotifyNotification, ServerChanNotification, PushDeerNotification, + ChatNotification, BarkNotification, TelegramBotNotification, DingtalkBotNotification,