| | |
| | | |
| | | import com.ruoyi.article.domain.Article; |
| | | import com.ruoyi.article.dto.ArticleDTO; |
| | | import com.ruoyi.article.dto.MemberLikeDTO; |
| | | import com.ruoyi.article.service.IArticleService; |
| | | import com.ruoyi.article.vo.ArticleCommentsVO; |
| | | import com.ruoyi.article.vo.ArticleVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.system.api.domain.MemberAddress; |
| | |
| | | @PostMapping("/getArticleList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "获取资讯") |
| | | public R<PageDTO<Article>> getArticleList(ArticleDTO articleDTO) { |
| | | return R.ok(iArticleService.getArticleList(articleDTO)); |
| | | public R<PageDTO<ArticleVO>> getArticleList(ArticleDTO articleDTO) { |
| | | return R.ok(iArticleService.getArticleList(articleDTO)); |
| | | } |
| | | |
| | | @PostMapping("/getMemberArticleList") |
| | |
| | | @PostMapping("/getMemberArticleInfo") |
| | | @ResponseBody |
| | | @ApiOperation(value = "获取资讯详情") |
| | | public R<Article> getMemberArticleInfo(ArticleDTO articleDTO) { |
| | | public R<ArticleVO> getMemberArticleInfo(ArticleDTO articleDTO) { |
| | | return R.ok(iArticleService.getMemberArticleInfo(articleDTO)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/getArticleCommentsList") |
| | |
| | | iArticleService.getReport(articleDTO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |