feat:update gen
This commit is contained in:
1 parent
8a7a9db7fd
commit
2d15f91f2e
15 files changed
+220
-256
No files matched your search
@@ -77,7 +77,7 @@ func Delete{{.ClassName}}(c *gin.Context) {
|
||||
var data models.{{.ClassName}}
|
||||
data.UpdateBy = tools.GetUserIdStr(c)
|
||||
|
||||
IDS := tools.IdsStrToIdsIntGroup("{{.PkJsonField}}", c)
|
||||
IDS := tools.GetDeleteIds(c)
|
||||
_, err := data.BatchDelete(IDS)
|
||||
tools.HasError(err, msg.DeletedFail, 500)
|
||||
app.OK(c, nil, msg.DeletedSuccess)
|
||||
|
||||
Reference in new issue
Block a user