v0.3.30: 清理notifier参数 — 移除title/content/level/priority,标题内容由消息模板统一管理

This commit is contained in:
2026-05-17 19:29:05 +08:00
parent 063fa6b065
commit 4c46685d1f
16 changed files with 17 additions and 54 deletions

View File

@@ -1,10 +1,7 @@
import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types';
const params: NotifierParam[] = [
{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://oapi.dingtalk.com/robot/send?access_token=xxx' },
{ key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false },
{ key: 'content', label: '内容', type: 'text', required: true },
{ key: 'level', label: '级别', type: 'text', default: 'info', required: false },
{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://oapi.dingtalk.com/robot/send?access_token=xxx' }
];
export const dingtalkNotifier: Notifier = {