| | |
| | | |
| | | @Qualifier("videoEsServiceImpl") |
| | | private final EsService esService; |
| | | |
| | | @PostMapping("/publish") |
| | | @ApiOperation(value = "发布视频", notes = "发布视频") |
| | | public Result publish(@RequestBody @Validated({Add.class}) WxVideoForm form) { |
| | | return videoService.systemPublish(form); |
| | | } |
| | | @PutMapping |
| | | @ApiOperation(value = "修改视频", notes = "修改视频") |
| | | public Result update(@RequestBody @Validated(Update.class) WxVideoForm form) { |
| | | return videoService.sysUpdatePublish(form); |
| | | } |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | public Result removeById(@PathVariable("id") String id) { |