WH01243 1 年間 前
コミット
ad19a894ff
1 ファイル変更6 行追加2 行削除
  1. 6 2
      service/exprot.go

+ 6 - 2
service/exprot.go

@@ -15,6 +15,10 @@ import (
 	"time"
 	"time"
 )
 )
 
 
+var (
+	DateTime = "2006-01-02 15:04:05"
+)
+
 type ExportReq struct {
 type ExportReq struct {
 	Mail       string
 	Mail       string
 	Mapping    []string
 	Mapping    []string
@@ -41,7 +45,7 @@ func (a *ExportReq) AllProjectExport() {
 			"excelPath":  strings.Join(pathArr, ","),
 			"excelPath":  strings.Join(pathArr, ","),
 			"zipPath":    pathstr,
 			"zipPath":    pathstr,
 			"sendState":  state,
 			"sendState":  state,
-			"createTime": time.Now().Format(time.DateTime),
+			"createTime": time.Now().Format(DateTime),
 		})
 		})
 	}
 	}
 }
 }
@@ -66,7 +70,7 @@ func (a *ExportReq) AllInfoExport() {
 			"excelPath":  strings.Join(pathArr, ","),
 			"excelPath":  strings.Join(pathArr, ","),
 			"zipPath":    pathstr,
 			"zipPath":    pathstr,
 			"sendState":  state,
 			"sendState":  state,
-			"createTime": time.Now().Format(time.DateTime),
+			"createTime": time.Now().Format(DateTime),
 		})
 		})
 	}
 	}
 }
 }