| | |
| | | import cc.mrbird.febs.mall.entity.MallMemberPayment; |
| | | import cc.mrbird.febs.mall.service.*; |
| | | 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.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; |
| | | |
| | | /** |
| | | * 小程序接收用户数据,更新用户信息 |
| | |
| | | |
| | | |
| | | @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() { |
| | | return new FebsResponse().success().data(memberService.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); |
| | | } |
| | | } |