From cd247e8b8e85f24bd24e6bb97bf89af501ce68f7 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 17 Dec 2024 23:53:09 +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/md/md_article.go | 2 +- app/svc/article/svc_list.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/md/md_article.go b/app/md/md_article.go index d96b76e..ea5d8dd 100644 --- a/app/md/md_article.go +++ b/app/md/md_article.go @@ -60,5 +60,5 @@ type ArticleSaveReq struct { Sort string `json:"sort"` } type ArticleDelReq struct { - Id []string `json:"id"` + Ids []string `json:"ids"` } diff --git a/app/svc/article/svc_list.go b/app/svc/article/svc_list.go index fcf746b..0d11974 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("ids", req.Id).Delete(&model.Article{}) + db.Db.In("id", req.Ids).Delete(&model.Article{}) e.OutSuc(c, "success", nil) return }