| | |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.goods.service.IGoodsGroupPurchaseService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | |
| | | private final IGoodsGroupPurchaseService goodsGroupPurchaseService; |
| | | |
| | | /** |
| | | * 团购商品开始团购 |
| | | * |
| | | * @param groupPurchaseId 团购商品id |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/start/{groupPurchaseId}") |
| | | R<?> startGroupPurchase(@PathVariable("groupPurchaseId") Long groupPurchaseId) { |
| | | goodsGroupPurchaseService.startGroupPurchase(groupPurchaseId); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 团购商品结束团购 |
| | | * |
| | | * @param groupPurchaseId 团购商品id |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/end/{groupPurchaseId}") |
| | | R<?> endGroupPurchase(@PathVariable("groupPurchaseId") Long groupPurchaseId) { |
| | | goodsGroupPurchaseService.endGroupPurchase(groupPurchaseId); |