Skip to content

Commit

Permalink
Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper711 committed Apr 13, 2022
2 parents 7270564 + ec04c32 commit 6ae9692
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,4 @@ public interface ArticleService extends IService<Article> {
*/
@CacheEvict(key = "#article.type")
Article updateArticleType(Article article);

/**
* 删除文章--类型
* @param type
* @param id
*/
@CacheEvict(key = "#type")
void delAllByType(String type, String id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,4 @@ public Article updateArticleType(Article article) {
this.updateById(oldArticle);
return oldArticle;
}

@Override
public void delAllByType(String type,String id) {
this.removeById(id);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@ public ResultMessage<Article> updateArticle(@RequestBody Article article, @PathV
return ResultUtil.data(articleService.updateArticleType(article));
}

@ApiOperation(value = "文章删除-文章类型")
@ApiImplicitParam(name = "type", value = "文章类型", required = true, dataType = "String", paramType = "path")
@DeleteMapping(value = "/delByIds/{type}")
public ResultMessage<Object> delAllByType(@PathVariable String type,String id) {
articleService.delAllByType(type,id);
return ResultUtil.success();
}

@ApiOperation(value = "修改文章状态")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "文章ID", required = true, paramType = "path"),
Expand All @@ -97,7 +89,7 @@ public ResultMessage<Article> updateStatus(@PathVariable("id") String id, boolea
}


@ApiOperation(value = "批量删除--id")
@ApiOperation(value = "批量删除")
@ApiImplicitParam(name = "id", value = "文章ID", required = true, dataType = "String", paramType = "path")
@DeleteMapping(value = "/delByIds/{id}")
public ResultMessage<Object> delAllByIds(@PathVariable String id) {
Expand Down

0 comments on commit 6ae9692

Please sign in to comment.