From eaf0add76cf5c480ba98dad90d1ea0f65821484e Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 28 Apr 2025 14:52:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/ue/controller/file_export.go | 4 ++-- features/ue/file_export/controller.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/ue/controller/file_export.go b/features/ue/controller/file_export.go index 96c3ccd3..926f5e50 100644 --- a/features/ue/controller/file_export.go +++ b/features/ue/controller/file_export.go @@ -5,10 +5,10 @@ import ( "os" "path/filepath" + "be.ems/features/ue/model" "be.ems/lib/file" "be.ems/lib/log" "be.ems/lib/services" - "be.ems/features/ue/model" "github.com/gin-gonic/gin" ) @@ -29,7 +29,7 @@ func (m *FileExport) GetFileList(c *gin.Context) { files, err := file.GetFileInfo(querys.Path, querys.Suffix) if err != nil { log.Error("failed to GetFileInfo:", err) - c.JSON(http.StatusOK, services.ErrResp(err.Error())) + c.JSON(http.StatusOK, services.ErrResp("not found path file")) return } diff --git a/features/ue/file_export/controller.go b/features/ue/file_export/controller.go index f40d93e0..d0d4379f 100644 --- a/features/ue/file_export/controller.go +++ b/features/ue/file_export/controller.go @@ -68,7 +68,7 @@ func (m *FileExport) GetFileList(c *gin.Context) { files, err := file.GetFileInfo(querys.Path, querys.Suffix) if err != nil { log.Error("failed to GetFileInfo:", err) - c.JSON(http.StatusOK, services.ErrResp(err.Error())) + c.JSON(http.StatusOK, services.ErrResp("not found path file")) return }