关联关系 type
This commit is contained in:
@@ -121,16 +121,18 @@ public class ACouponController {
|
||||
|
||||
/**
|
||||
* 获取该券关联的功能列表
|
||||
*
|
||||
* @param couponId 如果syncId有值 则为syncId 否则为id
|
||||
*/
|
||||
@GetMapping("/gifts")
|
||||
public CzgResult<Page<MkCouponGiftDTO>> getCouponGiftPage(Long couponId) {
|
||||
Page<MkCouponGiftDTO> data = couponGiftService.getCouponGiftPage(couponId);
|
||||
public CzgResult<Page<MkCouponGiftDTO>> getCouponGiftPage(@RequestParam Long couponId, @RequestParam(required = false) Integer type) {
|
||||
Page<MkCouponGiftDTO> data = couponGiftService.getCouponGiftPage(couponId, type);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过关联Id取消该券的关联
|
||||
*
|
||||
* @param id /admin/coupon/gifts的 主键Id
|
||||
*/
|
||||
@DeleteMapping("/cancelGift")
|
||||
|
||||
Reference in New Issue
Block a user