| | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | public Result update(@RequestBody @Validated(Update.class) WxVideoForm form) { |
| | | return videoService.update(form); |
| | | return videoService.updatePublish(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return videoService.removeById(id); |
| | | } |
| | | |
| | | @PostMapping("/down/{id}") |
| | | @ApiOperation(value = "用户下架视频", notes = "用户下架视频") |
| | | public Result downVideo(@PathVariable("id") String id) { |
| | | return videoService.buyerDownVideo(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | |
| | | return videoService.healthRecommendVideo(query); |
| | | } |
| | | |
| | | @GetMapping("/goods/detail/{videoId}") |
| | | @ApiOperation(value = "视频商品查看", notes = "视频商品查看") |
| | | public Result getGoodsDetail(@PathVariable("videoId") String videoId) { |
| | | return videoService.getGoodsDetail(videoId); |
| | | } |
| | | |
| | | @PostMapping("/view/record") |
| | | @ApiOperation(value = "保存观看记录", notes = "保存观看记录") |
| | | public Result saveViewRecord(@RequestBody VideoFootPrintForm form) { |