fix🐛 文件管理\内容管理\分类程序\定时任务的已知问题(#397)

This commit is contained in:
wenjianzhang authored and GitHub committed 2021-05-08 17:11:59 +08:00
commit 4a592f515a
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ func (s *ObjectById) Bind(ctx *gin.Context) error {
return err
}
if ctx.Request.Method == http.MethodDelete {
err = ctx.ShouldBind(&s.Ids)
err = ctx.ShouldBind(&s)
if err != nil {
log.Warnf("ShouldBind error: %s", err.Error())
return err