新增 wxPusher 推送通道。wxPusher 官方文档: https://wxpusher.zjiecode.com/docs/ (#2594)

* 增加 wxPusher 推送方式

* 补全 wxPusher 推送方式代码

* fix js 方法多进行了一次 JSON 格式化
This commit is contained in:
FanchangWang
2024-12-13 14:13:34 +08:00
committed by GitHub
parent c71abd8c86
commit 955c7377d7
8 changed files with 218 additions and 3 deletions
+10 -2
View File
@@ -21,6 +21,7 @@ export enum NotificationMode {
'webhook' = 'webhook',
'chronocat' = 'Chronocat',
'ntfy' = 'ntfy',
'wxPusherBot' = 'wxPusherBot',
}
abstract class NotificationBaseInfo {
@@ -150,6 +151,13 @@ export class NtfyNotification extends NotificationBaseInfo {
public ntfyTopic = '';
public ntfyPriority = '';
}
export class WxPusherBotNotification extends NotificationBaseInfo {
public wxPusherBotAppToken = '';
public wxPusherBotTopicIds = '';
public wxPusherBotUids = '';
}
export interface NotificationInfo
extends GoCqHttpBotNotification,
GotifyNotification,
@@ -170,5 +178,5 @@ export interface NotificationInfo
WebhookNotification,
ChronocatNotification,
LarkNotification,
NtfyNotification {}
NtfyNotification,
WxPusherBotNotification {}