diff --git a/src/server/sender/dingtalk.go b/src/server/common/sender/dingtalk.go similarity index 100% rename from src/server/sender/dingtalk.go rename to src/server/common/sender/dingtalk.go diff --git a/src/server/sender/email.go b/src/server/common/sender/email.go similarity index 100% rename from src/server/sender/email.go rename to src/server/common/sender/email.go diff --git a/src/server/sender/feishu.go b/src/server/common/sender/feishu.go similarity index 100% rename from src/server/sender/feishu.go rename to src/server/common/sender/feishu.go diff --git a/src/server/sender/wecom.go b/src/server/common/sender/wecom.go similarity index 100% rename from src/server/sender/wecom.go rename to src/server/common/sender/wecom.go diff --git a/src/server/engine/engine.go b/src/server/engine/engine.go index c2524c54..4d1141d6 100644 --- a/src/server/engine/engine.go +++ b/src/server/engine/engine.go @@ -4,8 +4,8 @@ import ( "context" "time" + "github.com/didi/nightingale/v5/src/server/common/sender" "github.com/didi/nightingale/v5/src/server/config" - "github.com/didi/nightingale/v5/src/server/sender" promstat "github.com/didi/nightingale/v5/src/server/stat" ) diff --git a/src/server/engine/notify.go b/src/server/engine/notify.go index 0cee497e..530c7b94 100644 --- a/src/server/engine/notify.go +++ b/src/server/engine/notify.go @@ -22,9 +22,9 @@ import ( "github.com/didi/nightingale/v5/src/models" "github.com/didi/nightingale/v5/src/pkg/sys" + "github.com/didi/nightingale/v5/src/server/common/sender" "github.com/didi/nightingale/v5/src/server/config" "github.com/didi/nightingale/v5/src/server/memsto" - "github.com/didi/nightingale/v5/src/server/sender" "github.com/didi/nightingale/v5/src/storage" )