From 890703c95f05eb7507441d12eee27fd21197e8c0 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 12 六月 2025 11:43:25 +0800
Subject: [PATCH] 视频表增加字段
---
buyer-api/src/main/java/cn/lili/controller/lmk/VideoController.java | 41 ++++++++++++++++++++++++++++++++++++++++-
1 files changed, 40 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..1841afb 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,10 @@
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;
@@ -66,8 +70,43 @@
@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);
+ }
+
+ @GetMapping("/wx/detail/{id}")
+ @ApiOperation(value = "灏忕▼搴�-鑾峰彇瑙嗛璇︽儏", notes = "灏忕▼搴�-鑾峰彇瑙嗛璇︽儏")
+ public Result wxDetail(@PathVariable("id") String id) {
+ return videoService.wxDetail(id);
+ }
}
--
Gitblit v1.8.0