| | |
| | | package com.ruoyi.article.controller.management; |
| | | |
| | | |
| | | 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.vo.MgtArticleVO; |
| | |
| | | * @param query 资讯管理查询条件 |
| | | * @return PageDTO<ArticleVO> |
| | | */ |
| | | @ApiOperation(value = "获取资讯列表的分页数据", notes = "获取资讯列表的分页数据") |
| | | @ApiOperation(value = "获取资讯列表的分页数据", notes = "获取资讯列表的分页数据,资讯审核列表") |
| | | @PostMapping("/page") |
| | | public R<PageDTO<MgtArticleVO>> getArticlePage(@Validated @RequestBody MgtArticleQuery query) { |
| | | return R.ok(articleService.getArticlePage(query)); |
| | |
| | | return R.ok(articleService.getDetail(id)); |
| | | } |
| | | |
| | | /** |
| | | * 资讯审核 |
| | | * |
| | | * @param dto 管理后台-资讯审核传输对象 |
| | | */ |
| | | @ApiOperation("资讯审核") |
| | | @PutMapping("/audit") |
| | | public R<?> audit(@Validated @RequestBody MgtArticleAuditDTO dto) { |
| | | articleService.audit(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |