Продакшн рефактор без легаси

This commit is contained in:
2026-04-30 20:54:38 +05:00
parent c10ab1fafd
commit 4a0d9569d1
41 changed files with 193 additions and 888 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import (
"hy2xs-admin/service"
"hy2xs-admin/util"
"io"
"path/filepath"
"strings"
"time"
)
@@ -299,7 +300,7 @@ func ExportAccount(c *gin.Context) {
}
fileName := fmt.Sprintf("AccountExport-%s.json", time.Now().Format("20060102150405"))
filePath := constant.ExportPathDir + fileName
filePath := filepath.Join(constant.ExportPathDir, fileName)
if err = util.ExportFile(filePath, accountExports, 0); err != nil {
vo.Fail(err.Error(), c)