From 0128ec2376a39685894f1f40010249b9fad88a0e Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 17 Dec 2024 23:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/article/svc_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }