fix: Adjust custom http to notification provider (#2237)

* feat: Adjust custom http to notification provider

* fix go linter

* update ProviderEditPage

* update ProviderEditPage
This commit is contained in:
UsherFall
2023-08-20 21:04:30 +08:00
committed by GitHub
parent f0e097e138
commit c54b54ca19
7 changed files with 122 additions and 123 deletions

View File

@ -16,9 +16,11 @@ package notification
import "github.com/nikoksr/notify"
func GetNotificationProvider(typ string, appId string, receiver string) (notify.Notifier, error) {
func GetNotificationProvider(typ string, appId string, receiver string, method string, title string) (notify.Notifier, error) {
if typ == "Telegram" {
return NewTelegramProvider(appId, receiver)
} else if typ == "Custom HTTP" {
return NewCustomHttpProvider(receiver, method, title)
}
return nil, nil