| | |
| | | @ResponseBody |
| | | @PostMapping("/getCoupon") |
| | | public BaseResponse<GetCouponResp> getCoupon(GetCouponReq req){ |
| | | log.warn("停车获取优惠券请求参数:{}", JSON.toJSONString(req)); |
| | | log.info("停车获取优惠券请求参数:{}", JSON.toJSONString(req)); |
| | | GetCouponResp coupon = couponService.getCoupon(req); |
| | | log.info("停车获取优惠券结果:{}", JSON.toJSONString(coupon)); |
| | | return BaseResponse.ok(coupon); |
| | | } |
| | | |
| | |
| | | @ResponseBody |
| | | @PostMapping("/usedCoupon") |
| | | public BaseResponse usedCoupon(UsedCoupon req){ |
| | | log.warn("停车使用优惠券请求参数:{}", JSON.toJSONString(req)); |
| | | log.info("停车使用优惠券请求参数:{}", JSON.toJSONString(req)); |
| | | couponService.usedCoupon(req); |
| | | return BaseResponse.ok(); |
| | | } |