diff --git a/src/push/custom-email.ts b/src/push/custom-email.ts index 0813f35..68e0bb7 100644 --- a/src/push/custom-email.ts +++ b/src/push/custom-email.ts @@ -153,10 +153,12 @@ export const customEmailOptionSchema: CustomEmailOptionSchema = { * @class CustomEmail */ export class CustomEmail implements Send { + // 命名空间 + static readonly namespace = '自定义邮件' - static configSchema = customEmailConfigSchema + static readonly configSchema = customEmailConfigSchema - static optionSchema = customEmailOptionSchema + static readonly optionSchema = customEmailOptionSchema private config: CustomEmailConfig diff --git a/src/push/dingtalk.ts b/src/push/dingtalk.ts index 1901438..bb13b2c 100644 --- a/src/push/dingtalk.ts +++ b/src/push/dingtalk.ts @@ -151,9 +151,11 @@ export interface DingtalkResponse { */ export class Dingtalk implements Send { - static configSchema = dingtalkConfigSchema + static readonly namespace = '钉钉' - static optionSchema = dingtalkOptionSchema + static readonly configSchema = dingtalkConfigSchema + + static readonly optionSchema = dingtalkOptionSchema private ACCESS_TOKEN: string /** diff --git a/src/push/discord.ts b/src/push/discord.ts index a013927..ea26339 100644 --- a/src/push/discord.ts +++ b/src/push/discord.ts @@ -81,8 +81,10 @@ export interface DiscordResponse { } */ export class Discord implements Send { - static configSchema = discordConfigSchema - static optionSchema = discordOptionSchema + static readonly namespace = 'Discord' + static readonly configSchema = discordConfigSchema + static readonly optionSchema = discordOptionSchema + /** * Webhook Url 可在服务器设置 -> 整合 -> Webhook -> 创建 Webhook 中获取 * diff --git a/src/push/i-got.ts b/src/push/i-got.ts index bd3bea0..1c46910 100644 --- a/src/push/i-got.ts +++ b/src/push/i-got.ts @@ -119,8 +119,9 @@ export interface IGotResponse { * @class IGot */ export class IGot implements Send { - static configSchema = iGotConfigSchema - static optionSchema = iGotOptionSchema + static readonly namespace = 'iGot' + static readonly configSchema = iGotConfigSchema + static readonly optionSchema = iGotOptionSchema /** * 微信搜索小程序“iGot”获取推送key * diff --git a/src/push/one-bot.ts b/src/push/one-bot.ts index db316a5..aac2a3e 100644 --- a/src/push/one-bot.ts +++ b/src/push/one-bot.ts @@ -139,9 +139,9 @@ export interface OneBotResponse { * @class OneBot */ export class OneBot implements Send { - - static configSchema = oneBotConfigSchema - static optionSchema = oneBotOptionSchema + static readonly namespace = 'OneBot' + static readonly configSchema = oneBotConfigSchema + static readonly optionSchema = oneBotOptionSchema /** * OneBot 协议版本号 diff --git a/src/push/push-deer.ts b/src/push/push-deer.ts index 592203b..b9d24eb 100644 --- a/src/push/push-deer.ts +++ b/src/push/push-deer.ts @@ -98,8 +98,9 @@ export interface PushDeerResponse { */ export class PushDeer implements Send { - static configSchema = pushDeerConfigSchema - static optionSchema = pushDeerOptionSchema + static readonly namespace = 'PushDeer' + static readonly configSchema = pushDeerConfigSchema + static readonly optionSchema = pushDeerOptionSchema /** * pushkey,请参考 https://github.com/easychen/pushdeer 获取 diff --git a/src/push/push-plus.ts b/src/push/push-plus.ts index af85223..9e494bd 100644 --- a/src/push/push-plus.ts +++ b/src/push/push-plus.ts @@ -184,8 +184,9 @@ export interface PushPlusResponse { * @class PushPlus */ export class PushPlus implements Send { - static configSchema = pushPlusConfigSchema - static optionSchema = pushPlusOptionSchema + static readonly namespace = 'PushPlus' + static readonly configSchema = pushPlusConfigSchema + static readonly optionSchema = pushPlusOptionSchema /** * 请前往 https://www.pushplus.plus 领取 * diff --git a/src/push/qmsg.ts b/src/push/qmsg.ts index 87d8451..2bde71e 100644 --- a/src/push/qmsg.ts +++ b/src/push/qmsg.ts @@ -126,8 +126,9 @@ export interface QmsgResponse { */ export class Qmsg implements Send { - static configSchema = qmsgConfigSchema - static optionSchema = qmsgOptionSchema + static readonly namespace = 'Qmsg酱' + static readonly configSchema = qmsgConfigSchema + static readonly optionSchema = qmsgOptionSchema private QMSG_KEY: string diff --git a/src/push/server-chan-turbo.ts b/src/push/server-chan-turbo.ts index ddacfcf..dd0ea22 100644 --- a/src/push/server-chan-turbo.ts +++ b/src/push/server-chan-turbo.ts @@ -120,8 +120,9 @@ export interface ServerChanTurboResponse { */ export class ServerChanTurbo implements Send { - static configSchema = serverChanTurboConfigSchema - static optionSchema = serverChanTurboOptionSchema + static readonly namespace = 'Server酱·Turbo' + static readonly configSchema = serverChanTurboConfigSchema + static readonly optionSchema = serverChanTurboOptionSchema /** * diff --git a/src/push/server-chan-v3.ts b/src/push/server-chan-v3.ts index 43f531b..605f0cd 100644 --- a/src/push/server-chan-v3.ts +++ b/src/push/server-chan-v3.ts @@ -76,8 +76,9 @@ export interface ServerChanV3Response { */ export class ServerChanV3 implements Send { - static configSchema = serverChanV3ConfigSchema - static optionSchema = serverChanV3OptionSchema + static readonly namespace = 'Server酱³' + static readonly configSchema = serverChanV3ConfigSchema + static readonly optionSchema = serverChanV3OptionSchema /** * 请前往 https://sc3.ft07.com/sendkey 领取 diff --git a/src/push/telegram.ts b/src/push/telegram.ts index bef7a07..d112c42 100644 --- a/src/push/telegram.ts +++ b/src/push/telegram.ts @@ -136,8 +136,9 @@ export interface TelegramResponse { */ export class Telegram implements Send { - static configSchema = telegramConfigSchema - static optionSchema = telegramOptionSchema + static readonly namespace = 'Telegram' + static readonly configSchema = telegramConfigSchema + static readonly optionSchema = telegramOptionSchema /** * 机器人令牌 diff --git a/src/push/wechat-app.ts b/src/push/wechat-app.ts index 31fbf8f..5832f6c 100644 --- a/src/push/wechat-app.ts +++ b/src/push/wechat-app.ts @@ -215,8 +215,9 @@ export interface WechatAppResponse { */ export class WechatApp implements Send { - static configSchema = wechatAppConfigSchema - static optionSchema = wechatAppOptionSchema + static readonly namespace = '企业微信应用' + static readonly configSchema = wechatAppConfigSchema + static readonly optionSchema = wechatAppOptionSchema private ACCESS_TOKEN: string diff --git a/src/push/wechat-robot.ts b/src/push/wechat-robot.ts index f8bb9cb..9e16565 100644 --- a/src/push/wechat-robot.ts +++ b/src/push/wechat-robot.ts @@ -84,8 +84,9 @@ export interface WechatRobotResponse { */ export class WechatRobot implements Send { - static configSchema = wechatRobotConfigSchema - static optionSchema = wechatRobotOptionSchema + static readonly namespace = '企业微信群机器人' + static readonly configSchema = wechatRobotConfigSchema + static readonly optionSchema = wechatRobotOptionSchema private WECHAT_ROBOT_KEY: string diff --git a/src/push/xi-zhi.ts b/src/push/xi-zhi.ts index 3ba2aa1..61b62f9 100644 --- a/src/push/xi-zhi.ts +++ b/src/push/xi-zhi.ts @@ -45,8 +45,9 @@ export interface XiZhiResponse { */ export class XiZhi implements Send { - static configSchema = xiZhiConfigSchema - static optionSchema = xiZhiOptionSchema + static readonly namespace = '息知' + static readonly configSchema = xiZhiConfigSchema + static readonly optionSchema = xiZhiOptionSchema private XI_ZHI_KEY: string