diff --git a/app/svc/article/svc_list.go b/app/svc/article/svc_list.go index 211d18f..fcf746b 100644 --- a/app/svc/article/svc_list.go +++ b/app/svc/article/svc_list.go @@ -120,7 +120,7 @@ func Del(c *gin.Context) { e.OutErr(c, e.ERR_INVALID_ARGS, err) return } - db.Db.In("id", req.Id).Delete(&model.Article{}) + db.Db.In("ids", req.Id).Delete(&model.Article{}) e.OutSuc(c, "success", nil) return }