From 65fb2bd401331b838c1f833e5e1ce059268e8250 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:56:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8=E4=BE=9D=E8=B5=96=20(?= =?UTF-8?q?#5604)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/dashboard.go | 1 + backend/app/service/device_clean.go | 1 + backend/utils/files/zip.go | 8 +++++--- backend/utils/mysql/helper/dump.go | 1 + backend/utils/mysql/helper/source.go | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/backend/app/service/dashboard.go b/backend/app/service/dashboard.go index 37d39cc01..419d9753b 100644 --- a/backend/app/service/dashboard.go +++ b/backend/app/service/dashboard.go @@ -9,6 +9,7 @@ import ( "time" "github.com/1Panel-dev/1Panel/backend/app/dto" + "github.com/1Panel-dev/1Panel/backend/constant" "github.com/1Panel-dev/1Panel/backend/global" "github.com/1Panel-dev/1Panel/backend/utils/cmd" "github.com/1Panel-dev/1Panel/backend/utils/copier" diff --git a/backend/app/service/device_clean.go b/backend/app/service/device_clean.go index 7e14d0a2f..f6dfd53a4 100644 --- a/backend/app/service/device_clean.go +++ b/backend/app/service/device_clean.go @@ -9,6 +9,7 @@ import ( "strings" "time" + "github.com/1Panel-dev/1Panel/backend/constant" "github.com/1Panel-dev/1Panel/backend/utils/docker" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" diff --git a/backend/utils/files/zip.go b/backend/utils/files/zip.go index e4a89daa4..0d2896811 100644 --- a/backend/utils/files/zip.go +++ b/backend/utils/files/zip.go @@ -2,12 +2,14 @@ package files import ( "fmt" - "github.com/1Panel-dev/1Panel/backend/global" - "github.com/1Panel-dev/1Panel/backend/utils/cmd" - "github.com/1Panel-dev/1Panel/backend/utils/common" "path" "strings" "time" + + "github.com/1Panel-dev/1Panel/backend/constant" + "github.com/1Panel-dev/1Panel/backend/global" + "github.com/1Panel-dev/1Panel/backend/utils/cmd" + "github.com/1Panel-dev/1Panel/backend/utils/common" ) type ZipArchiver struct { diff --git a/backend/utils/mysql/helper/dump.go b/backend/utils/mysql/helper/dump.go index 862786832..df0144592 100644 --- a/backend/utils/mysql/helper/dump.go +++ b/backend/utils/mysql/helper/dump.go @@ -9,6 +9,7 @@ import ( "strings" "time" + "github.com/1Panel-dev/1Panel/backend/constant" "github.com/1Panel-dev/1Panel/backend/global" _ "github.com/go-sql-driver/mysql" ) diff --git a/backend/utils/mysql/helper/source.go b/backend/utils/mysql/helper/source.go index 9265d7032..b15a5cd97 100644 --- a/backend/utils/mysql/helper/source.go +++ b/backend/utils/mysql/helper/source.go @@ -9,6 +9,7 @@ import ( "strings" "time" + "github.com/1Panel-dev/1Panel/backend/constant" "github.com/1Panel-dev/1Panel/backend/global" )