From 2ec58220723358d8012b251a7b8d245c84403074 Mon Sep 17 00:00:00 2001 From: donghongyang <2064765821@qq.com> Date: Sat, 30 Nov 2024 12:08:26 +0800 Subject: [PATCH] =?UTF-8?q?feat():=20=E6=9B=B4=E6=94=B9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ActivityTeamController.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java index ae5dcc8..e547232 100644 --- a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java +++ b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java @@ -1,6 +1,7 @@ package com.muyu.marketing.team.controller; +import com.dtflys.forest.annotation.Get; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.muyu.common.core.domain.Result; @@ -11,13 +12,11 @@ import com.muyu.marketing.domain.model.ActivityTeamInfoListModel; import com.muyu.marketing.domain.req.ActivityTeamInfoReq; import com.muyu.marketing.domain.req.ActivityTeamInfoSaveReq; import com.muyu.marketing.domain.req.TeamInfoListReq; +import com.muyu.marketing.domain.resp.ActivityTeamInfoDatailResp; import com.muyu.marketing.domain.resp.TeamInfoListResp; import com.muyu.marketing.team.service.ActivityTeamInfoService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.util.List; @@ -52,6 +51,7 @@ public class ActivityTeamController { } + /** * 添加团购活动 * @param activityTeamInfoSaveReq 添加请求对象 @@ -76,4 +76,14 @@ public class ActivityTeamController { return Result.success(activityTeamInfoPageInfo); } + /** + * 根据活动Id查询信息 + * @param + * @return 结果集 + */ + @GetMapping("/byId/{id}") + public Result findById(@PathVariable Long id) { + ActivityTeamInfoDatailResp activityById = activityTeamInfoService.findActivityById(id); + return Result.success(activityById); + } }