fix: 获取文件导出路径错误提示信息
This commit is contained in:
@@ -5,10 +5,10 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
"be.ems/features/ue/model"
|
||||||
"be.ems/lib/file"
|
"be.ems/lib/file"
|
||||||
"be.ems/lib/log"
|
"be.ems/lib/log"
|
||||||
"be.ems/lib/services"
|
"be.ems/lib/services"
|
||||||
"be.ems/features/ue/model"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ func (m *FileExport) GetFileList(c *gin.Context) {
|
|||||||
files, err := file.GetFileInfo(querys.Path, querys.Suffix)
|
files, err := file.GetFileInfo(querys.Path, querys.Suffix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("failed to GetFileInfo:", err)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ func (m *FileExport) GetFileList(c *gin.Context) {
|
|||||||
files, err := file.GetFileInfo(querys.Path, querys.Suffix)
|
files, err := file.GetFileInfo(querys.Path, querys.Suffix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("failed to GetFileInfo:", err)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user