From 95f8eda23ff06243e68d33769c5e68f6f6de2c4b Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 03 六月 2025 16:40:57 +0800
Subject: [PATCH] 视频主页部分接口

---
 buyer-api/src/main/java/cn/lili/controller/lmk/VideoController.java |   44 +++++++++++++++++++++++++++++++++-----------
 1 files changed, 33 insertions(+), 11 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 7d66e4f..68671ba 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
@@ -1,7 +1,11 @@
 package cn.lili.controller.lmk;
 
+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;
@@ -57,21 +61,39 @@
         return videoService.remove(ids);
     }
 
-    @GetMapping("/page")
-    @ApiOperation(value = "鍒嗛〉", notes = "鍒嗛〉")
-    public Result page(VideoQuery query) {
-        return videoService.page(query);
-    }
-
     @GetMapping("/{id}")
     @ApiOperation(value = "璇︽儏", notes = "璇︽儏")
-    public Result detail(@PathVariable("id") Integer id) {
+    public Result detail(@PathVariable("id") String id) {
         return videoService.detail(id);
     }
 
-    @GetMapping("/list")
-    @ApiOperation(value = "鍒楄〃", notes = "鍒楄〃")
-    public Result list() {
-        return videoService.all();
+    @GetMapping("/recommend")
+    @ApiOperation(value = "瑙嗛鎺ㄨ崘", notes = "瑙嗛鎺ㄨ崘")
+    public Result recommendVideo(AbsQuery 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