优惠券重写

This commit is contained in:
2024-10-24 13:26:18 +08:00
parent 646f201ce1
commit d27e2e01b6
38 changed files with 2423 additions and 1602 deletions

View File

@@ -136,7 +136,6 @@ public class PayController {
@RequestMapping("getActive")
public Result getActive(
@RequestHeader("token") String token,
@RequestParam("shopId") String shopId,
@RequestParam("page") int page,
@RequestParam("pageSize") int pageSize) {

View File

@@ -0,0 +1,37 @@
package com.chaozhanggui.system.cashierservice.controller;
import com.chaozhanggui.system.cashierservice.entity.dto.CouponDto;
import com.chaozhanggui.system.cashierservice.service.TbShopCouponService;
import com.chaozhanggui.system.cashierservice.sign.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 优惠券(TbShopCoupon)表控制层
*
* @author ww
* @since 2024-10-23 15:37:26
*/
@RestController
@RequestMapping("coupon")
public class TbShopCouponController {
/**
* 服务对象
*/
@Autowired
private TbShopCouponService tbShopCouponService;
/**
* 根据优惠券DTO查询优惠券
* @param param 优惠券DTO
* @return 查询结果
*/
@RequestMapping("find")
public Result find(@RequestBody CouponDto param) {
return tbShopCouponService.find(param);
}
}