提交 a8099514 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

增加是否自动创建api入库的开关 可自动产生api入库

上级 dfee07c1
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册