| | |
| | | public Result updateArticle(@RequestBody @Valid AdminUpdateArticleDto adminUpdateArticleDto) { |
| | | return iArticleService.updateArticle(adminUpdateArticleDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "发布文章", notes = "发布文章") |
| | | @GetMapping(value = "/updateStatusOn/{id}") |
| | | public Result updateStatusOn(@PathVariable(value = "id") Long id) { |
| | | return iArticleService.updateStatusOn(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "取消发布文章", notes = "取消发布文章") |
| | | @GetMapping(value = "/updateStatusOff/{id}") |
| | | public Result updateStatusOff(@PathVariable(value = "id") Long id) { |
| | | return iArticleService.updateStatusOff(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除文章", notes = "删除文章") |
| | | @PostMapping(value = "/delObjs") |
| | | public Result delObjs(@RequestBody @Valid AdminDeleteDto adminDeleteDto) { |
| | | return iArticleService.delObjs(adminDeleteDto); |
| | | } |
| | | } |