取消关联
This commit is contained in:
@@ -124,11 +124,20 @@ public class ACouponController {
|
||||
* @param couponId 如果syncId有值 则为syncId 否则为id
|
||||
*/
|
||||
@GetMapping("/gifts")
|
||||
public CzgResult<Page<MkCouponGiftDTO>> getCouponPage(Long couponId) {
|
||||
public CzgResult<Page<MkCouponGiftDTO>> getCouponGiftPage(Long couponId) {
|
||||
Page<MkCouponGiftDTO> data = couponGiftService.getCouponGiftPage(couponId);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过关联Id取消该券的关联
|
||||
* @param id /admin/coupon/gifts的 主键Id
|
||||
*/
|
||||
@DeleteMapping("/cancelGift")
|
||||
public CzgResult<Void> cancelGift(Long id) {
|
||||
couponGiftService.cancelGift(id);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
private void asyncToBranchShop(Long id, Integer type) {
|
||||
long shopId = StpKit.USER.getShopId(0L);
|
||||
|
||||
Reference in New Issue
Block a user