| | |
| | | return iApiMallAgentService.agentApply(apiAgentApplyDto); |
| | | } |
| | | |
| | | /** |
| | | * 绑定默认推荐人 |
| | | */ |
| | | @ApiOperation(value = "绑定默认推荐人") |
| | | @PostMapping(value = "/setInvite") |
| | | public FebsResponse setInvite(@RequestBody @Validated ApiSetInviteDto apiSetInviteDto) { |
| | | return memberService.setInvite(apiSetInviteDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "代理申请信息") |
| | | @GetMapping(value = "/agentApplyInfo") |
| | | public FebsResponse agentApplyInfo() { |
| | |
| | | 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()); |
| | | } |
| | | } |