From 59beb88bdf1f8bedd5538580e50038ffee6985d9 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期五, 06 六月 2025 15:24:58 +0800 Subject: [PATCH] 优化我的收藏,活动报名,我的活动页面,活动页面后端逻辑,新增加载更多接口 --- buyer-api/src/main/java/cn/lili/controller/lmk/VideoCommentController.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/buyer-api/src/main/java/cn/lili/controller/lmk/VideoCommentController.java b/buyer-api/src/main/java/cn/lili/controller/lmk/VideoCommentController.java index 81ce413..d43fea6 100644 --- a/buyer-api/src/main/java/cn/lili/controller/lmk/VideoCommentController.java +++ b/buyer-api/src/main/java/cn/lili/controller/lmk/VideoCommentController.java @@ -2,6 +2,7 @@ import cn.lili.group.Update; import cn.lili.group.Add; +import cn.lili.modules.lmk.domain.form.ThumbsUpRecordForm; import org.springframework.validation.annotation.Validated; import org.springframework.security.access.prepost.PreAuthorize; import lombok.RequiredArgsConstructor; @@ -32,6 +33,18 @@ private final VideoCommentService videoCommentService; + @PostMapping("/thumbs_up") + @ApiOperation(value = "鐐硅禐璇勮", notes = "鐐硅禐璇勮") + public Result thumbsUp(@RequestBody @Validated(Add.class) ThumbsUpRecordForm form) { + return videoCommentService.thumbsUp(form); + } + + @PostMapping("/cancel/thumbs_up") + @ApiOperation(value = "鍙栨秷鐐硅禐璇勮", notes = "鍙栨秷鐐硅禐璇勮") + public Result cancelThumbsUp(@RequestBody @Validated(Add.class) ThumbsUpRecordForm form) { + return videoCommentService.cancelThumbsUp(form); + } + @PostMapping("/comment") @ApiOperation(value = "璇勮", notes = "璇勮") public Result comment(@RequestBody @Validated(Add.class) VideoCommentForm form) { -- Gitblit v1.8.0