From bf8396146be7f691af95f5c528165e91bd0891fd Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Mon, 30 Mar 2020 14:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QMPlusServer/model/autoCodeModel/autoCode.go | 17 ++++++----------- .../src/view/systemTools/autoCode/index.vue | 5 +---- README.md | 6 +++--- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/QMPlusServer/model/autoCodeModel/autoCode.go b/QMPlusServer/model/autoCodeModel/autoCode.go index 46cbaf32..37cf0b8e 100644 --- a/QMPlusServer/model/autoCodeModel/autoCode.go +++ b/QMPlusServer/model/autoCodeModel/autoCode.go @@ -6,7 +6,7 @@ import ( "os" ) -//开发中功能,若您发现这块代码可以研究,可以无视 +// 初始版本自动化代码工具 type AutoCodeStruct struct { StructName string `json:"structName"` PackageName string `json:"packageName"` @@ -21,11 +21,6 @@ type Field struct { ColumnName string `json:"columnName"` } -type Dictionary struct { - Label string `json:"label"` - Value string `json:"value"` -} - func (a *AutoCodeStruct) CreateTemp() (err error) { basePath := "./tpl" modelTmpl, err := template.ParseFiles(basePath + "/te/model.go.tpl") @@ -107,11 +102,11 @@ func (a *AutoCodeStruct) CreateTemp() (err error) { return err } } - model.Close() - api.Close() - router.Close() - feapi.Close() - readme.Close() + _ = model.Close() + _ = api.Close() + _ = router.Close() + _ = feapi.Close() + _ = readme.Close() fileList := []string{ _te + a.PackageName + "/model/model.go", _te + a.PackageName + "/api/api.go", diff --git a/QMPlusVuePage/src/view/systemTools/autoCode/index.vue b/QMPlusVuePage/src/view/systemTools/autoCode/index.vue index b15843a5..2965c6c6 100644 --- a/QMPlusVuePage/src/view/systemTools/autoCode/index.vue +++ b/QMPlusVuePage/src/view/systemTools/autoCode/index.vue @@ -1,9 +1,6 @@