限时折扣 用户端接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user