From ec04c3221fda8635ee9b6ed14640394f653810c9 Mon Sep 17 00:00:00 2001 From: fengtianyangyang Date: Wed, 13 Apr 2022 12:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=96=87=E7=AB=A0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/lili/modules/page/service/ArticleService.java | 8 -------- .../modules/page/serviceimpl/ArticleServiceImpl.java | 5 ----- .../controller/other/ArticleManagerController.java | 10 +--------- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/page/service/ArticleService.java b/framework/src/main/java/cn/lili/modules/page/service/ArticleService.java index 9fd53538..67e97b56 100644 --- a/framework/src/main/java/cn/lili/modules/page/service/ArticleService.java +++ b/framework/src/main/java/cn/lili/modules/page/service/ArticleService.java @@ -95,12 +95,4 @@ public interface ArticleService extends IService
{ */ @CacheEvict(key = "#article.type") Article updateArticleType(Article article); - - /** - * 删除文章--类型 - * @param type - * @param id - */ - @CacheEvict(key = "#type") - void delAllByType(String type, String id); } \ No newline at end of file diff --git a/framework/src/main/java/cn/lili/modules/page/serviceimpl/ArticleServiceImpl.java b/framework/src/main/java/cn/lili/modules/page/serviceimpl/ArticleServiceImpl.java index 312ad9cc..77ddd2f8 100644 --- a/framework/src/main/java/cn/lili/modules/page/serviceimpl/ArticleServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/page/serviceimpl/ArticleServiceImpl.java @@ -99,9 +99,4 @@ public class ArticleServiceImpl extends ServiceImpl impl this.updateById(oldArticle); return oldArticle; } - - @Override - public void delAllByType(String type,String id) { - this.removeById(id); - } } \ No newline at end of file diff --git a/manager-api/src/main/java/cn/lili/controller/other/ArticleManagerController.java b/manager-api/src/main/java/cn/lili/controller/other/ArticleManagerController.java index b74da239..ea8e22ab 100644 --- a/manager-api/src/main/java/cn/lili/controller/other/ArticleManagerController.java +++ b/manager-api/src/main/java/cn/lili/controller/other/ArticleManagerController.java @@ -77,14 +77,6 @@ public class ArticleManagerController { return ResultUtil.data(articleService.updateArticleType(article)); } - @ApiOperation(value = "文章删除-文章类型") - @ApiImplicitParam(name = "type", value = "文章类型", required = true, dataType = "String", paramType = "path") - @DeleteMapping(value = "/delByIds/{type}") - public ResultMessage 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"), @@ -97,7 +89,7 @@ public class ArticleManagerController { } - @ApiOperation(value = "批量删除--id") + @ApiOperation(value = "批量删除") @ApiImplicitParam(name = "id", value = "文章ID", required = true, dataType = "String", paramType = "path") @DeleteMapping(value = "/delByIds/{id}") public ResultMessage delAllByIds(@PathVariable String id) {