mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
新增 wxPusher 推送通道。wxPusher 官方文档: https://wxpusher.zjiecode.com/docs/ (#2594)
* 增加 wxPusher 推送方式 * 补全 wxPusher 推送方式代码 * fix js 方法多进行了一次 JSON 格式化
This commit is contained in:
+10
-2
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user