移除文章类型删除

This commit is contained in:
fengtianyangyang
2022-04-13 12:00:40 +08:00
parent 761982474c
commit ec04c3221f
3 changed files with 1 additions and 22 deletions

View File

@@ -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);
}

View File

@@ -99,9 +99,4 @@ public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> impl
this.updateById(oldArticle);
return oldArticle;
}
@Override
public void delAllByType(String type,String id) {
this.removeById(id);
}
}