From 45fccac802160458965a727bb21056abfc3bc528 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 03 六月 2025 18:40:15 +0800 Subject: [PATCH] 视频主页-视频播放接口适配 --- buyer-api/src/main/java/cn/lili/controller/lmk/VideoController.java | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/buyer-api/src/main/java/cn/lili/controller/lmk/VideoController.java b/buyer-api/src/main/java/cn/lili/controller/lmk/VideoController.java index ec8ab0d..9b3a130 100644 --- a/buyer-api/src/main/java/cn/lili/controller/lmk/VideoController.java +++ b/buyer-api/src/main/java/cn/lili/controller/lmk/VideoController.java @@ -3,6 +3,9 @@ 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.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; @@ -66,8 +69,31 @@ @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); + } } -- Gitblit v1.8.0