| | |
| | | import cn.lili.base.AbsQuery; |
| | | import cn.lili.group.Update; |
| | | import cn.lili.group.Add; |
| | | import cn.lili.modules.lmk.domain.form.VideoFootPrintForm; |
| | | import cn.lili.modules.lmk.domain.form.VideoHomePageInfoForm; |
| | | import cn.lili.modules.lmk.domain.query.AuthorVideoQuery; |
| | | import cn.lili.modules.member.entity.dos.FootPrint; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | |
| | | @GetMapping("/recommend") |
| | | @ApiOperation(value = "视频推荐", notes = "视频推荐") |
| | | public Result recommendVideo(AbsQuery query) { |
| | | public Result recommendVideo(VideoQuery query) { |
| | | return videoService.recommendVideo(query); |
| | | } |
| | | |
| | | @PostMapping("/view/record") |
| | | @ApiOperation(value = "保存观看记录", notes = "保存观看记录") |
| | | public Result saveViewRecord(@RequestBody VideoFootPrintForm form) { |
| | | return videoService.saveViewRecord(form); |
| | | } |
| | | |
| | | @GetMapping("/author-info/{authorId}") |
| | | @ApiOperation(value = "获取视频主页作者信息", notes = "获取视频主页作者信息") |
| | | public Result getAuthorInfo(@PathVariable("authorId") String authorId) { |
| | | return videoService.getAuthorInfo(authorId); |
| | | } |
| | | |
| | | @GetMapping("/author-video-page") |
| | | @ApiOperation(value = "获取视频主页作者视频分页", notes = "获取视频主页作者视频分页") |
| | | public Result getAuthorVideoPage(AuthorVideoQuery query) { |
| | | return videoService.getAuthorVideoPage(query); |
| | | } |
| | | |
| | | @GetMapping("/author-collect-video-page") |
| | | @ApiOperation(value = "获取视频主页作者收藏的视频分页", notes = "获取视频主页作者收藏的视频分页") |
| | | public Result getAuthorCollectVideoPage(AuthorVideoQuery query) { |
| | | return videoService.getAuthorCollectVideoPage(query); |
| | | } |
| | | |
| | | @PostMapping("/home-page-info-edit") |
| | | @ApiOperation(value = "保存视频主页的个人信息修改", notes = "保存视频主页的个人信息修改") |
| | | public Result homePageInfoEdit(@RequestBody @Validated VideoHomePageInfoForm form) { |
| | | return videoService.homePageInfoEdit(form); |
| | | } |
| | | } |