前后端一致修复

This commit is contained in:
linwenxiang committed 2021-02-19 16:50:57 +08:00
1 parent a4f8b11925
commit e04b5559bd
19 files changed
+176 -84

No files matched your search

+2 -2
View File
@@ -42,10 +42,9 @@ func init() {
}
func run() {
usage := `start init`
fmt.Println(usage)
if !generate {
fmt.Println(`start init`)
//1. 读取配置
config.Setup(file.NewSource, file.WithPath(configYml))
//2. 设置日志
@@ -54,6 +53,7 @@ func run() {
global.RequestLogger.Logger = logger.SetupLogger(config.LoggerConfig.Path, "request")
_ = initDB()
} else {
fmt.Println(`generate migration file`)
_ = genFile()
}
}