From 9db526f5ffd777e50d750c3395df5f9d6387f766 Mon Sep 17 00:00:00 2001 From: xiexiaojun Date: Mon, 1 Jul 2019 22:26:02 +0800 Subject: [PATCH] new --- data/view/gtools/gtools.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/view/gtools/gtools.go b/data/view/gtools/gtools.go index 64e5f1c..7ef93e9 100644 --- a/data/view/gtools/gtools.go +++ b/data/view/gtools/gtools.go @@ -21,10 +21,10 @@ func Execute() { // fmt.Println(tt) pkg := OnGetPackageInfo(orm, OnGetTables(orm)) - pkg.SetPackage(config.GetMysqlDbInfo().Database) + pkg.SetPackage("model") str := pkg.Generate() - path := config.GetOutDir() + "/" + config.GetMysqlDbInfo().Database + "/" + config.GetMysqlDbInfo().Database + ".go" + path := config.GetOutDir() + "/" + config.GetMysqlDbInfo().Database + ".go" tools.WriteFile(path, []string{str}, true)