| | |
| | | return memberService.getCoupon(getCouponDto); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "扫码推销员领取优惠卷") |
| | | @PostMapping(value = "/scanCoupon") |
| | | public FebsResponse scanCoupon(@RequestBody GetCouponDto getCouponDto) { |
| | | return memberService.scanCoupon(getCouponDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "优惠卷列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MallMemberCouponVo.class) |
| | |
| | | @PostMapping(value = "/memberCoupon") |
| | | public FebsResponse memberCoupon(@RequestBody MallMemberCouponDto mallMemberCouponDto) { |
| | | return memberService.memberCoupon(mallMemberCouponDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "创建订单优惠卷列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MallMemberCouponVo.class) |
| | | }) |
| | | @PostMapping(value = "/memberPayCoupon") |
| | | public FebsResponse memberPayCoupon(@RequestBody MallMemberCouponDto mallMemberCouponDto) { |
| | | return memberService.memberPayCoupon(mallMemberCouponDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "优惠卷详情", notes = "优惠卷详情") |
| | |
| | | return memberService.couponDetails(id); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "登录事件", notes = "登录事件") |
| | | @GetMapping(value = "/loginEvent") |
| | | public FebsResponse loginEvent() { |
| | | return new FebsResponse().success().data(memberService.loginEvent()); |
| | | } |
| | | } |