自动化代码增加 批量删除功能

This commit is contained in:
pixel
2020-07-07 16:39:36 +08:00
parent a7e2ef171f
commit 943913b443
16 changed files with 201 additions and 31 deletions
+7 -1
View File
@@ -35,7 +35,7 @@ func CreateTemp(c *gin.Context) {
return
}
if a.AutoCreateApiToSql {
apiList := [5]model.SysApi{
apiList := [6]model.SysApi{
{
Path: "/" + a.Abbreviation + "/" + "create" + a.StructName,
Description: "新增" + a.Description,
@@ -48,6 +48,12 @@ func CreateTemp(c *gin.Context) {
ApiGroup: a.Abbreviation,
Method: "DELETE",
},
{
Path: "/" + a.Abbreviation + "/" + "delete" + a.StructName+"ByIds",
Description: "批量删除" + a.Description,
ApiGroup: a.Abbreviation,
Method: "DELETE",
},
{
Path: "/" + a.Abbreviation + "/" + "update" + a.StructName,
Description: "更新" + a.Description,