diff --git a/src/server/poster/post.go b/src/server/common/poster/post.go similarity index 100% rename from src/server/poster/post.go rename to src/server/common/poster/post.go diff --git a/src/server/engine/callback.go b/src/server/engine/callback.go index 17028037..2c21a3d6 100644 --- a/src/server/engine/callback.go +++ b/src/server/engine/callback.go @@ -9,9 +9,9 @@ import ( "github.com/didi/nightingale/v5/src/models" "github.com/didi/nightingale/v5/src/pkg/ibex" + "github.com/didi/nightingale/v5/src/server/common/poster" "github.com/didi/nightingale/v5/src/server/config" "github.com/didi/nightingale/v5/src/server/memsto" - "github.com/didi/nightingale/v5/src/server/poster" ) func callback(event *models.AlertCurEvent) { diff --git a/src/server/sender/dingtalk.go b/src/server/sender/dingtalk.go index a2da40dd..0c51738d 100644 --- a/src/server/sender/dingtalk.go +++ b/src/server/sender/dingtalk.go @@ -4,7 +4,7 @@ import ( "strings" "time" - "github.com/didi/nightingale/v5/src/server/poster" + "github.com/didi/nightingale/v5/src/server/common/poster" "github.com/toolkits/pkg/logger" ) diff --git a/src/server/sender/feishu.go b/src/server/sender/feishu.go index 41693ac5..e78d9eaf 100644 --- a/src/server/sender/feishu.go +++ b/src/server/sender/feishu.go @@ -3,7 +3,7 @@ package sender import ( "time" - "github.com/didi/nightingale/v5/src/server/poster" + "github.com/didi/nightingale/v5/src/server/common/poster" "github.com/toolkits/pkg/logger" ) diff --git a/src/server/sender/wecom.go b/src/server/sender/wecom.go index 2cf9769d..5671fd9a 100644 --- a/src/server/sender/wecom.go +++ b/src/server/sender/wecom.go @@ -3,7 +3,7 @@ package sender import ( "time" - "github.com/didi/nightingale/v5/src/server/poster" + "github.com/didi/nightingale/v5/src/server/common/poster" "github.com/toolkits/pkg/logger" )