mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-14 10:22:02 +08:00
【新增】【通知】飞书群机器人通知类型
This commit is contained in:
@@ -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("不支持的通知类型")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user