From 01d6fa48a0de7a21988e89f71721b6b85e53b517 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 06 三月 2025 16:33:53 +0800 Subject: [PATCH] 去掉资讯图片必填限制 --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/forepart/ForepartGoodsGroupPurchaseController.java | 36 +++++++++++++++++++++++++++++------- 1 files changed, 29 insertions(+), 7 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/forepart/ForepartGoodsGroupPurchaseController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/forepart/ForepartGoodsGroupPurchaseController.java index 9051af8..17a42f9 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/forepart/ForepartGoodsGroupPurchaseController.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/forepart/ForepartGoodsGroupPurchaseController.java @@ -1,17 +1,20 @@ package com.ruoyi.goods.controller.forepart; -import com.fasterxml.jackson.core.JsonProcessingException; import com.ruoyi.common.core.domain.R; -import com.ruoyi.common.security.annotation.InnerAuth; -import com.ruoyi.goods.controller.forepart.vo.GoodsGroupPurchaseInfoVO; +import com.ruoyi.common.core.utils.page.PageDTO; import com.ruoyi.goods.service.IGoodsGroupPurchaseService; import com.ruoyi.system.api.domain.dto.HomeGoodsSkuDTO; -import com.ruoyi.system.api.domain.vo.HomeGoodsSkuInfoVO; +import com.ruoyi.system.api.domain.vo.GoodsGroupPurchaseInfoVO; +import com.ruoyi.system.api.domain.vo.WdGoodsGroupPurchaseVO; +import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springframework.web.bind.annotation.*; +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; /** * <p> @@ -25,14 +28,33 @@ @RestController @RequiredArgsConstructor @RequestMapping("/forepart/goods-group-purchase") +@Api(value = "用戶端-商品团购接口", tags = "用戶端-商品团购接口", description = "用戶端-商品团购接口") public class ForepartGoodsGroupPurchaseController { private final IGoodsGroupPurchaseService goodsGroupPurchaseService; - @RequestMapping("/getGoodsGroupPurchaseInfo") - @ResponseBody + @PostMapping("/getGoodsGroupPurchaseInfo") @ApiOperation(value = "用户端-团购商品详情") public R<GoodsGroupPurchaseInfoVO> getGoodsGroupPurchaseInfo(@RequestBody HomeGoodsSkuDTO homeGoodsSkuDTO) { return R.ok(goodsGroupPurchaseService.getGoodsGroupPurchaseInfo(homeGoodsSkuDTO)); } + + @PostMapping("/getFormedGoodsGroupPurchaseInfo") + @ApiOperation(value = "用户端-已成团团购商品详情") + public R<GoodsGroupPurchaseInfoVO> getFormedGoodsGroupPurchaseInfo( + @RequestBody HomeGoodsSkuDTO homeGoodsSkuDTO) { + return R.ok(goodsGroupPurchaseService.getFormedGoodsGroupPurchaseInfo(homeGoodsSkuDTO)); + } + @PostMapping("/QxGoodsGroupPurchase") + @ApiOperation(value = "用户端-取消团购商品") + public R QxGoodsGroupPurchase(@RequestBody HomeGoodsSkuDTO homeGoodsSkuDTO) { + goodsGroupPurchaseService.QxGoodsGroupPurchase(homeGoodsSkuDTO); + return R.ok(); + } + + @PostMapping("/CtjlGoodsGroupPurchase") + @ApiOperation(value = "用户端-我的参团记录") + public R<PageDTO<WdGoodsGroupPurchaseVO>> CtjlGoodsGroupPurchase(@RequestBody HomeGoodsSkuDTO homeGoodsSkuDTO) { + return R.ok(goodsGroupPurchaseService.CtjlGoodsGroupPurchase(homeGoodsSkuDTO)); + } } -- Gitblit v1.7.1