Kaynağa Gözat

add autoMoveFilePath 字段,修改utils的fileoperations.go-> file_operations.go

SliverHorn 4 yıl önce
ebeveyn
işleme
9a044b2883

+ 4 - 3
server/service/sys_auto_code.go

@@ -12,9 +12,10 @@ import (
 )
 
 type tplData struct {
-	template     *template.Template
-	locationPath string
-	autoCodePath string
+	template         *template.Template
+	locationPath     string
+	autoCodePath     string
+	autoMoveFilePath string
 }
 
 // @title    CreateTemp

+ 0 - 2
server/utils/fileoperations.go → server/utils/file_operations.go

@@ -8,8 +8,6 @@ import (
 	"path/filepath"
 )
 
-// package fileOperations use File Operations
-
 // fileMove: 文件移动
 // src: 源位置 需要传入绝对路径
 // dst: 目标位置 需要传入绝对路径