Notify Add Lark

This commit is contained in:
g1335333249
2024-10-17 12:39:18 +08:00
parent a035ba192a
commit 004c6a8506
11 changed files with 497 additions and 333 deletions

View File

@@ -19,11 +19,12 @@ export type NotifyTemplate = {
export type NotifyChannels = {
dingtalk?: NotifyChannel;
lark?: NotifyChannel;
telegram?: NotifyChannel;
webhook?: NotifyChannel;
};
export type NotifyChannel = NotifyChannelDingTalk | NotifyChannelTelegram | NotifyChannelWebhook;
export type NotifyChannel = NotifyChannelDingTalk | NotifyChannelLark | NotifyChannelTelegram | NotifyChannelWebhook;
export type NotifyChannelDingTalk = {
accessToken: string;
@@ -31,6 +32,11 @@ export type NotifyChannelDingTalk = {
enabled: boolean;
};
export type NotifyChannelLark = {
webhookUrl: string;
enabled: boolean;
};
export type NotifyChannelTelegram = {
apiToken: string;
chatId: string;