|  |  |  | 
|---|
|  |  |  | import com.ruoyi.account.api.dto.GrantCouponDto; | 
|---|
|  |  |  | import com.ruoyi.account.api.factory.AppCouponFallbackFactory; | 
|---|
|  |  |  | import com.ruoyi.account.api.factory.AppUserFallbackFactory; | 
|---|
|  |  |  | import com.ruoyi.account.api.model.TAppCoupon; | 
|---|
|  |  |  | import com.ruoyi.account.api.query.ExchangeRecordGoodsQuery; | 
|---|
|  |  |  | import com.ruoyi.account.api.vo.ExchangeRecordVO; | 
|---|
|  |  |  | import com.ruoyi.common.core.constant.ServiceNameConstants; | 
|---|
|  |  |  | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PathVariable; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestBody; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestParam; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/t-app-coupon/getExchangeRecordByCouponId") | 
|---|
|  |  |  | R<PageInfo<ExchangeRecordVO>> getExchangeRecordByCouponId(@RequestBody ExchangeRecordGoodsQuery couponId); | 
|---|
|  |  |  | R<List<ExchangeRecordVO>> getExchangeRecordByCouponId(@RequestBody ExchangeRecordGoodsQuery couponId); | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 后台远程调用 给用户发放优惠券 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/t-app-coupon/grantCoupon") | 
|---|
|  |  |  | R  grantCoupon(@RequestBody GrantCouponDto dto); | 
|---|
|  |  |  | R grantCoupon(@RequestBody GrantCouponDto dto); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping(value = "/t-app-coupon/refund/{id}") | 
|---|
|  |  |  | R refund(@PathVariable("id") String id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据id获取优惠券领取记录 | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping(value = "/t-app-coupon/getAppCouponById") | 
|---|
|  |  |  | R<TAppCoupon> getAppCouponById(@RequestParam("id") Long id); | 
|---|
|  |  |  | } | 
|---|