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

This commit is contained in:
wantoper
2025-05-29 10:27:09 +08:00
parent 5e874e65f8
commit c7e8dee436
3 changed files with 137 additions and 0 deletions

View File

@@ -128,6 +128,8 @@ func NotifyTest(id string) error {
err = NotifyWebHook(params)
case "feishu":
err = NotifyFeishu(params)
case "dingtalk":
err = NotifyDingtalk(params)
}
return err
}
@@ -149,6 +151,8 @@ func Notify(params map[string]any) error {
return NotifyWebHook(params)
case "feishu":
return NotifyFeishu(params)
case "dingtalk":
return NotifyDingtalk(params)
default:
return fmt.Errorf("不支持的通知类型")
}