From a8099514e3b103fbed87f3ed561d3925fd6b4b45 Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sun, 3 May 2020 21:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=9B=E5=BB=BAapi=E5=85=A5=E5=BA=93=E7=9A=84?= =?UTF-8?q?=E5=BC=80=E5=85=B3=20=E5=8F=AF=E8=87=AA=E5=8A=A8=E4=BA=A7?= =?UTF-8?q?=E7=94=9Fapi=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/v1/sys_auto_code.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/api/v1/sys_auto_code.go b/server/api/v1/sys_auto_code.go index a2182cd5..78f13d3d 100644 --- a/server/api/v1/sys_auto_code.go +++ b/server/api/v1/sys_auto_code.go @@ -21,7 +21,6 @@ import ( func CreateTemp(c *gin.Context) { var a model.AutoCodeStruct _ = c.ShouldBindJSON(&a) - err := service.CreateTemp(a) if a.AutoCreateApiToSql { apiList := [5]model.SysApi{ { @@ -64,7 +63,7 @@ func CreateTemp(c *gin.Context) { } } } - + err := service.CreateTemp(a) if err != nil { response.FailWithMessage(fmt.Sprintf("创建失败,%v", err), c) os.Remove("./ginvueadmin.zip")