Add the functionality to authorize copying

This commit is contained in:
yoan
2024-10-04 08:19:46 +08:00
parent 1347066549
commit f036eb1cf2
5 changed files with 8 additions and 7 deletions

View File

@@ -31,11 +31,12 @@ func Send(title, content string) error {
return nil
}
n := notifyPackage.New()
// 添加推送渠道
notifyPackage.UseServices(notifiers...)
n.UseServices(notifiers...)
// 发送消息
return notifyPackage.Send(context.Background(), title, content)
return n.Send(context.Background(), title, content)
}
func getNotifiers() ([]notifyPackage.Notifier, error) {