| | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.*; |
| | | import cc.mrbird.febs.mall.entity.MallMember; |
| | | import cc.mrbird.febs.mall.entity.MallMemberCoupon; |
| | | import cc.mrbird.febs.mall.entity.MallMemberPayment; |
| | | import cc.mrbird.febs.mall.service.*; |
| | | import cc.mrbird.febs.mall.service.IApiMallAgentService; |
| | | import cc.mrbird.febs.mall.service.IApiMallMemberService; |
| | | import cc.mrbird.febs.mall.service.IApiMallMemberWalletService; |
| | | import cc.mrbird.febs.mall.service.IMallMemberWithdrawService; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import cc.mrbird.febs.vip.service.IMallVipBenefitsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | private final IMallMemberWithdrawService mallMemberWithdrawService; |
| | | private final IApiMallMemberWalletService walletService; |
| | | private final IApiMallAgentService iApiMallAgentService; |
| | | private final IMallVipBenefitsService mallVipBenefitsService; |
| | | |
| | | /** |
| | | * 小程序接收用户数据,更新用户信息 |
| | |
| | | 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 = "优惠卷详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MallMemberCouponVo.class) |
| | |
| | | return memberService.couponDetails(id); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "登录事件", notes = "登录事件") |
| | | @GetMapping(value = "/birthdayEvent") |
| | | public FebsResponse birthdayEvent() { |
| | | Map<String, Object> birthdayEvent = mallVipBenefitsService.birthdayEvent(); |
| | | return new FebsResponse().success().data(birthdayEvent); |
| | | } |
| | | |
| | | @ApiOperation(value = "登录事件", notes = "登录事件") |
| | | @GetMapping(value = "/loginEvent") |
| | | public FebsResponse loginEvent() { |
| | | Map<String, Object> loginEvent = memberService.loginEvent(); |
| | | return new FebsResponse().success().data(loginEvent); |
| | | } |
| | | |
| | | @ApiOperation(value = "店铺列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MallStoreVo.class) |
| | | }) |
| | | @PostMapping(value = "/storeList") |
| | | public FebsResponse storeList(@RequestBody MallStoreDto mallStoreDto) { |
| | | return memberService.storeList(mallStoreDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "店铺机器列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MallStoreItemVo.class) |
| | | }) |
| | | @PostMapping(value = "/storeItemList") |
| | | public FebsResponse storeItemList(@RequestBody MallStoreItemDto mallStoreItemDto) { |
| | | return memberService.storeItemList(mallStoreItemDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "绑定用户") |
| | | @PostMapping(value = "/bindStoreMember") |
| | | public FebsResponse bindStoreMember(@RequestBody @Validated BindStoreMemberDto bindStoreMemberDto) { |
| | | return memberService.bindStoreMember(bindStoreMemberDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "绑定列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MallStoreMemberVo.class) |
| | | }) |
| | | @PostMapping(value = "/bindList") |
| | | public FebsResponse bindList() { |
| | | return memberService.bindList(); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取检测结果") |
| | | @PostMapping(value = "/bindResult") |
| | | public FebsResponse bindResult(@RequestBody @Validated BindResultDto bindResultDto) { |
| | | return memberService.bindResult(bindResultDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "去授权") |
| | | @PostMapping(value = "/bindDoctor") |
| | | public FebsResponse bindDoctor(@RequestBody @Validated ApiDoctorBindDto dto) { |
| | | return memberService.bindDoctor(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的检测用户") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiDoctorListVo.class) |
| | | }) |
| | | @PostMapping(value = "/doctorList") |
| | | public FebsResponse doctorList(@RequestBody ApiDoctorListDto dto) { |
| | | |
| | | return memberService.doctorList(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的授权记录") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiDoctorListVo.class) |
| | | }) |
| | | @PostMapping(value = "/authList") |
| | | public FebsResponse authList() { |
| | | |
| | | return memberService.authList(); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的授权记录-删除") |
| | | @PostMapping(value = "/authDel") |
| | | public FebsResponse authDel(@RequestBody @Validated ApiDoctorAuthDeleteDto dto) { |
| | | |
| | | return memberService.authDel(dto); |
| | | } |
| | | |
| | | |
| | | } |