| | |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | @GetMapping("/filmWorks/setTop") |
| | | @ApiOperation(value = "文章置顶", notes = "文章置顶") |
| | | public ResponseEntity<ReturnDataDTO> setTop(@NotNull(message = "id不能为空") Long id) { |
| | | filmWorksService.changeTopState(id); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | @GetMapping("/filmWorks/setDown") |
| | | @ApiOperation(value = "取消置顶", notes = "取消置顶") |
| | | public ResponseEntity<ReturnDataDTO> setDown(@NotNull(message = "id不能为空") Long id) { |
| | | filmWorksService.changeDownState(id); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/filmWorks/delete/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |