From 2f67dbf8e585cbff4ed5737c08d0b0061e8b4d50 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Wed, 23 Apr 2025 17:50:20 +0800
Subject: [PATCH] refactor(mall): 重构投票活动相关接口和数据结构

---
 src/main/java/cc/mrbird/febs/mall/controller/activity/ApiHappyActivityController.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/controller/activity/ApiHappyActivityController.java b/src/main/java/cc/mrbird/febs/mall/controller/activity/ApiHappyActivityController.java
index 72ed54a..85fd0bf 100644
--- a/src/main/java/cc/mrbird/febs/mall/controller/activity/ApiHappyActivityController.java
+++ b/src/main/java/cc/mrbird/febs/mall/controller/activity/ApiHappyActivityController.java
@@ -3,6 +3,7 @@
 import cc.mrbird.febs.common.annotation.Limit;
 import cc.mrbird.febs.common.entity.FebsResponse;
 import cc.mrbird.febs.mall.dto.*;
+import cc.mrbird.febs.mall.dto.activity.ApiVoteOptionInPageDto;
 import cc.mrbird.febs.mall.service.HappyActivityService;
 import cc.mrbird.febs.mall.vo.*;
 import io.swagger.annotations.Api;
@@ -56,10 +57,10 @@
     @ApiResponses({
             @ApiResponse(code = 200, message = "success", response = ApiActivityOptionListVo.class)
     })
-    @GetMapping(value = "/voteOptionList/{id}")
-    public FebsResponse voteOptionList(@PathVariable("id") Long id) {
+    @GetMapping(value = "/voteOptionInPage")
+    public FebsResponse voteOptionInPage(@RequestBody @Validated ApiVoteOptionInPageDto dto) {
 
-        return happyActivityService.voteOptionList(id);
+        return happyActivityService.voteOptionInPage(dto);
     }
 
     @ApiOperation(value = "投票活动-选项详情", notes = "投票活动-选项详情")

--
Gitblit v1.9.1