| | |
| | | package cn.lili.controller.lmk; |
| | | |
| | | import cn.lili.group.Update; |
| | | import cn.lili.base.Result; |
| | | import cn.lili.group.Add; |
| | | import cn.lili.group.Update; |
| | | import cn.lili.modules.lmk.domain.form.ThumbsUpRecordForm; |
| | | import cn.lili.modules.lmk.domain.form.VideoFootPrintForm; |
| | | import cn.lili.modules.lmk.domain.form.VideoHomePageInfoForm; |
| | | import cn.lili.modules.lmk.domain.form.WxVideoForm; |
| | | import cn.lili.modules.lmk.domain.query.*; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import cn.lili.modules.lmk.service.VideoService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import cn.lili.modules.lmk.service.VideoService; |
| | | import cn.lili.base.Result; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 视频内容 前端控制器 |
| | |
| | | return videoService.getAuthorCollectVideoPage(query); |
| | | } |
| | | |
| | | @GetMapping("/author-like-video-page") |
| | | @ApiOperation(value = "获取视频主页作者点赞的视频分页", notes = "获取视频主页作者点赞的视频分页") |
| | | public Result getAuthorLikeVideoPage(AuthorVideoQuery query) { |
| | | return videoService.getAuthorLikeVideoPage(query); |
| | | } |
| | | |
| | | @PostMapping("/home-page-info-edit") |
| | | @ApiOperation(value = "保存视频主页的个人信息修改", notes = "保存视频主页的个人信息修改") |
| | | public Result homePageInfoEdit(@RequestBody @Validated VideoHomePageInfoForm form) { |
| | |
| | | public Result wxDetail(@PathVariable("id") String id) { |
| | | return videoService.wxDetail(id); |
| | | } |
| | | |
| | | @PostMapping("/change/thumbs-up") |
| | | @ApiOperation(value = "点赞/取消点赞视频", notes = "点赞/取消点赞视频") |
| | | public Result changeThumbsUp(@RequestBody @Validated(Add.class) ThumbsUpRecordForm form) { |
| | | return videoService.changeThumbsUp(form); |
| | | } |
| | | |
| | | @GetMapping("/es/search") |
| | | @ApiOperation(value = "视频搜索", notes = "视频搜索") |
| | | public Result esSearch(VideoEsQuery query) { |
| | | return videoService.esSearch(query); |
| | | } |
| | | |
| | | @PostMapping("/goods/similarly") |
| | | @ApiOperation(value = "挂相同商品的视频", notes = "挂相同商品的视频") |
| | | public Result goodsSimilarly(@RequestBody VideoQuery query) { |
| | | return videoService.recommendVideo(query); |
| | | } |
| | | |
| | | @GetMapping("/history") |
| | | @ApiOperation(value = "获取历史播放记录") |
| | | public Result getHistoryPage(VideoHistoryQuery query) { |
| | | return videoService.getHistoryPage(query); |
| | | } |
| | | } |