| | |
| | | package com.ruoyi.article.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.article.domain.pojo.Article; |
| | | import com.ruoyi.article.controller.forepart.dto.ArticleDTO; |
| | | import com.ruoyi.article.controller.forepart.vo.ArticleCommentsVO; |
| | | import com.ruoyi.article.controller.forepart.vo.ArticleVO; |
| | | import com.ruoyi.article.controller.management.dto.MgtArticleAuditDTO; |
| | | import com.ruoyi.article.controller.management.dto.MgtArticleDTO; |
| | | import com.ruoyi.article.controller.management.dto.MgtArticleQuery; |
| | | import com.ruoyi.article.controller.management.dto.MgtArticleUpdDTO; |
| | | import com.ruoyi.article.controller.management.vo.MgtArticleVO; |
| | | import com.ruoyi.article.domain.Article; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | |
| | | /** |
| | | * <p> |
| | | * 资讯表 服务类 |
| | |
| | | */ |
| | | public interface IArticleService extends IService<Article> { |
| | | |
| | | PageDTO<ArticleVO> getArticleList(ArticleDTO articleDTO); |
| | | |
| | | PageDTO<Article> getMemberArticleList(ArticleDTO articleDTO); |
| | | |
| | | void saveMemberArticle(ArticleDTO articleDTO); |
| | | |
| | | void delMemberArticle(ArticleDTO articleDTO); |
| | | |
| | | ArticleVO getMemberArticleInfo(ArticleDTO articleDTO); |
| | | |
| | | PageDTO<ArticleCommentsVO> getArticleCommentsList(ArticleDTO articleDTO); |
| | | void getReport(ArticleDTO articleDTO); |
| | | |
| | | /** |
| | | * 获取资讯列表的分页数据 |
| | | * |
| | | * @param query 资讯管理查询条件 |
| | | * @return PageDTO<ArticleVO> |
| | | */ |
| | | PageDTO<MgtArticleVO> getArticlePage(MgtArticleQuery query); |
| | | |
| | | /** |
| | | * "添加/编辑资讯 |
| | | * |
| | | * @param dto 管理后台-资讯传输对象 |
| | | */ |
| | | void saveArticle(MgtArticleDTO dto); |
| | | |
| | | /** |
| | | * 处理举报 |
| | | * |
| | | * @param id 资讯id |
| | | */ |
| | | void handleReport(Long id); |
| | | |
| | | /** |
| | | * 查看详情 |
| | | * |
| | | * @param id 资讯id |
| | | * @return MgtArticleVO |
| | | */ |
| | | MgtArticleVO getDetail(Long id); |
| | | |
| | | /** |
| | | * 资讯审核 |
| | | * |
| | | * @param dto 管理后台-资讯审核传输对象 |
| | | */ |
| | | void audit(MgtArticleAuditDTO dto); |
| | | |
| | | /** |
| | | * 上架/下架 |
| | | * |
| | | * @param dto 资讯上下架数据传输对象 |
| | | */ |
| | | void updStatus(MgtArticleUpdDTO dto); |
| | | |
| | | void removeCommentsById(Long id); |
| | | } |