限时折扣 用户端接口

This commit is contained in:
2025-10-21 15:43:18 +08:00
parent 02cbb27eac
commit a2cd91bf75
10 changed files with 531 additions and 12 deletions

View File

@@ -0,0 +1,34 @@
package com.czg.controller.user;
import com.czg.market.entity.MkLimitTimeDiscount;
import com.czg.market.service.MkLimitTimeDiscountService;
import com.czg.resp.CzgResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* 限时折扣
*
* @author ww
*/
@RestController
@RequestMapping("/user/limitTimeDiscount")
public class ULimitTimeDiscountController {
@Resource
private MkLimitTimeDiscountService limitTimeDiscountService;
/**
* 获取限时折扣
*/
@GetMapping
public CzgResult<MkLimitTimeDiscount> getActivity(@RequestParam Long shopId) {
MkLimitTimeDiscount data = limitTimeDiscountService.getLimitTimeDiscountByShopId(shopId);
return CzgResult.success(data);
}
}