【新增】【通知】飞书群机器人通知类型

This commit is contained in:
wantoper
2025-05-28 17:42:01 +08:00
parent ae558a7212
commit 5e874e65f8
3 changed files with 138 additions and 0 deletions

View File

@@ -126,6 +126,8 @@ func NotifyTest(id string) error {
err = NotifyMail(params)
case "webhook":
err = NotifyWebHook(params)
case "feishu":
err = NotifyFeishu(params)
}
return err
}
@@ -145,6 +147,8 @@ func Notify(params map[string]any) error {
// return NotifyBt(params)
case "webhook":
return NotifyWebHook(params)
case "feishu":
return NotifyFeishu(params)
default:
return fmt.Errorf("不支持的通知类型")
}