mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 16:01:22 +02:00
refactor: simplify io code and make utils module independent
This commit is contained in:
@@ -2,7 +2,7 @@ package notif
|
||||
|
||||
import (
|
||||
"github.com/yusing/go-proxy/internal/gperr"
|
||||
"github.com/yusing/go-proxy/internal/utils"
|
||||
"github.com/yusing/go-proxy/internal/serialization"
|
||||
)
|
||||
|
||||
type NotificationConfig struct {
|
||||
@@ -46,5 +46,5 @@ func (cfg *NotificationConfig) UnmarshalMap(m map[string]any) (err gperr.Error)
|
||||
Withf("expect %s or %s", ProviderWebhook, ProviderGotify)
|
||||
}
|
||||
|
||||
return utils.MapUnmarshalValidate(m, cfg.Provider)
|
||||
return serialization.MapUnmarshalValidate(m, cfg.Provider)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user