|  |  |  | 
|---|
|  |  |  | import cc.mrbird.febs.mall.entity.MallMember; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.entity.MallMemberPayment; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.IApiMallMemberService; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.IApiMallMemberWalletService; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.ICommonService; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.MallMemberVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.MoneyFlowVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.TeamListVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.IMallMemberWithdrawService; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.*; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import io.swagger.annotations.ApiResponse; | 
|---|
|  |  |  | 
|---|
|  |  |  | public class ApiMallMemberController { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private final IApiMallMemberService memberService; | 
|---|
|  |  |  | private final IMallMemberWithdrawService mallMemberWithdrawService; | 
|---|
|  |  |  | private final IApiMallMemberWalletService walletService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "获取商城用户信息", notes = "获取商城用户信息") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "我的团队列表") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = TeamListVo.class) | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = MyTeamVo.class) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @PostMapping(value = "/teamList") | 
|---|
|  |  |  | public FebsResponse teamList(@RequestBody TeamListDto teamListDto) { | 
|---|
|  |  |  | return memberService.teamList(teamListDto); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "资金流水列表") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | 
|---|
|  |  |  | return new FebsResponse().success().message("转账成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "提现规则", notes = "提现规则") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = CashOutSettingVo.class) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(value = "/cashOutSetting") | 
|---|
|  |  |  | public FebsResponse cashOutSetting() { | 
|---|
|  |  |  | return new FebsResponse().success().data(memberService.cashOutSetting()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "提现") | 
|---|
|  |  |  | @PostMapping(value = "/withdrawal") | 
|---|
|  |  |  | public FebsResponse withdrawal(@RequestBody @Validated WithdrawalDto withdrawalDto) { | 
|---|
|  |  |  | memberService.withdrawal(withdrawalDto); | 
|---|
|  |  |  | mallMemberWithdrawService.withdrawal(withdrawalDto); | 
|---|
|  |  |  | return new FebsResponse().success().message("提交成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | member.setName(account.getName()); | 
|---|
|  |  |  | return new FebsResponse().success().data(member); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "佣金划转") | 
|---|
|  |  |  | @PostMapping(value = "/commissionChange") | 
|---|
|  |  |  | public FebsResponse commissionChange(@RequestBody @Validated CommissionChangeDto commissionChange) { | 
|---|
|  |  |  | walletService.commissionChange(commissionChange); | 
|---|
|  |  |  | return new FebsResponse().success(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "我的权益") | 
|---|
|  |  |  | @ApiResponses( | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = MyCommissionVo.class) | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | @PostMapping(value = "/myCommission") | 
|---|
|  |  |  | public FebsResponse myCommission() { | 
|---|
|  |  |  | return new FebsResponse().success().data(memberService.myCommission()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "商铺申请是否存在") | 
|---|
|  |  |  | @PostMapping(value = "/shopApplyIsExist") | 
|---|
|  |  |  | public FebsResponse shopApplyIsExist() { | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|