| | |
| | | couponService.sendCouponGift(giftSendDtoList); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * @description 定时发送优惠券 |
| | | * @author jqs |
| | | * @date 2023/7/12 11:56 |
| | | * @param couponId |
| | | * @return R |
| | | */ |
| | | @PostMapping("/autoTimeSendCoupon") |
| | | public R autoTimeSendCoupon(@RequestBody String couponId){ |
| | | couponService.autoTimeSendCoupon(couponId); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * @description 使用优惠券 |
| | | * @author jqs |
| | | * @date 2023/7/13 19:38 |
| | | * @param memberCouponIds |
| | | * @return R |
| | | */ |
| | | @PostMapping("/useMemberCoupon") |
| | | public R useMemberCoupon(@RequestBody String memberCouponIds){ |
| | | memberCouponService.useMemberCoupon(memberCouponIds); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * @description 使用优惠券 |
| | | * @author jqs |
| | | * @date 2023/7/13 19:38 |
| | | * @param memberCouponIds |
| | | * @return R |
| | | */ |
| | | @PostMapping("/backMemberCoupon") |
| | | public R backMemberCoupon(@RequestBody String memberCouponIds){ |
| | | memberCouponService.backMemberCoupon(memberCouponIds); |
| | | return R.ok(); |
| | | } |
| | | } |