Browse Source

更新

master
huangjiajun 21 hours ago
parent
commit
cd247e8b8e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/md/md_article.go
  2. +1
    -1
      app/svc/article/svc_list.go

+ 1
- 1
app/md/md_article.go View File

@@ -60,5 +60,5 @@ type ArticleSaveReq struct {
Sort string `json:"sort"` Sort string `json:"sort"`
} }
type ArticleDelReq struct { type ArticleDelReq struct {
Id []string `json:"id"`
Ids []string `json:"ids"`
} }

+ 1
- 1
app/svc/article/svc_list.go View File

@@ -120,7 +120,7 @@ func Del(c *gin.Context) {
e.OutErr(c, e.ERR_INVALID_ARGS, err) e.OutErr(c, e.ERR_INVALID_ARGS, err)
return return
} }
db.Db.In("ids", req.Id).Delete(&model.Article{})
db.Db.In("id", req.Ids).Delete(&model.Article{})
e.OutSuc(c, "success", nil) e.OutSuc(c, "success", nil)
return return
} }

Loading…
Cancel
Save