public_host 4 years ago
parent
commit
a53822ebb8
  1. 9
      hasaki-gen-crud/template.go

9
hasaki-gen-crud/template.go

@ -202,6 +202,15 @@ func InitializationHttpCrudPrefixHigHead3A60Temp3A60(router *hskgin.GinHelper, a
data, count := req.PageData(page, 10)
ctx.DisplayByPage(data, count)
})
router.Any("/Prefix3A60/TempLowHead3A60/delete", func(ctx *hskgin.GinContextHelper) {
req := &Temp3A60{}
ctx.Bind(&req)
authority(ctx, req)
err := req.Delete()
ctx.CheckErrDisplayByError(err)
ctx.DisplayBySuccess("删除成功")
})
}
// ----------------------------temp------------------------------------
Loading…
Cancel
Save