| | |
| | | return returnData(R.SUCCESS.getCode(), filmWorksService.getFilmWorksAll()); |
| | | } |
| | | |
| | | @GetMapping("/filmWorks/pending/create") |
| | | @ApiOperation(value = "影视作品待生成列表", httpMethod = "GET") |
| | | public ResponseEntity<ReturnDataDTO<List<FilmWorksVO>>> pendingCreate() { |
| | | return returnData(R.SUCCESS.getCode(), filmWorksService.pendingCreate()); |
| | | } |
| | | |
| | | @GetMapping("/filmWorks/list") |
| | | @ApiOperation(value = "影视作品列表", httpMethod = "GET") |
| | | public ResponseEntity<ReturnDataDTO<Page<FilmWorksVO>>> getFilmWorksList(Page page, FilmWorksQueryDTO dto) { |
| | |
| | | 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 = "批量删除") |
| | |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | @PostMapping("/filmWorks/approved/batch") |
| | | @ApiOperation(value = "批量通过", notes = "批量通过") |
| | | public ResponseEntity<ReturnDataDTO> batchApproved(@Validated @RequestBody BatchDTO dto) { |
| | | filmWorksService.batchApproved(dto); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | @PostMapping("/filmWorks/rejected/batch") |
| | | @ApiOperation(value = "批量驳回", notes = "批量驳回") |
| | | public ResponseEntity<ReturnDataDTO> batchRejected(@Validated @RequestBody BatchDTO dto) { |
| | | filmWorksService.batchRejected(dto); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | @GetMapping("/filmWorks/list/view") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | public ResponseEntity<ReturnDataDTO<FilmWorksVO>> detail(@NotNull(message = "id不能为空") Long id) { |