|  |  | 
 |  |  | package com.doumee.api.web; | 
 |  |  |  | 
 |  |  | import com.doumee.config.wx.TransferToUser; | 
 |  |  | import com.doumee.core.annotation.LoginRequired; | 
 |  |  | import com.doumee.core.annotation.trace.Trace; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | 
 |  |  | import com.doumee.dao.business.model.IdentityInfo; | 
 |  |  | import com.doumee.dao.business.model.Member; | 
 |  |  | import com.doumee.dao.business.model.MemberRevenue; | 
 |  |  | import com.doumee.dao.dto.WithdrawalDTO; | 
 |  |  | import com.doumee.dao.dto.WxPhoneRequest; | 
 |  |  | import com.doumee.dao.vo.AccountResponse; | 
 |  |  | import com.doumee.dao.vo.UserCenterVO; | 
 |  |  | import com.doumee.service.business.IdentityInfoService; | 
 |  |  | import com.doumee.service.business.MemberRevenueService; | 
 |  |  | import com.doumee.service.business.MemberService; | 
 |  |  | import com.doumee.service.business.WithdrawalOrdersService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiImplicitParam; | 
 |  |  | import io.swagger.annotations.ApiImplicitParams; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private MemberRevenueService memberRevenueService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private WithdrawalOrdersService withdrawalOrdersService; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "获取系统配置", notes = "小程序端") | 
 |  |  |     @GetMapping("/getPlatformAboutUs") | 
 |  |  |     public ApiResponse<UserCenterVO> getPlatformAboutUs() { | 
 |  |  |         return  ApiResponse.success("查询成功",memberService.getPlatformAboutUs()); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @LoginRequired | 
 |  |  |     @ApiOperation(value = "获取个人信息", notes = "小程序端") | 
 |  |  | 
 |  |  |         return ApiResponse.success(memberRevenueService.findPage(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @LoginRequired | 
 |  |  |     @ApiOperation("提现申请") | 
 |  |  |     @PostMapping("/applyWithdrawal") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<TransferToUser.TransferToUserResponse> applyWithdrawal (@RequestBody WithdrawalDTO withdrawalDTO) { | 
 |  |  |         withdrawalDTO.setMember(this.getMemberResponse()); | 
 |  |  |         return ApiResponse.success("操作成功",withdrawalOrdersService.applyWithdrawal(withdrawalDTO)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @LoginRequired | 
 |  |  |     @ApiOperation("撤销提现申请") | 
 |  |  |     @PostMapping("/cancelTransfer") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
 |  |  |     }) | 
 |  |  |     public ApiResponse cancelTransfer (@RequestBody TransferToUser.CancelTransferRequest request) { | 
 |  |  |         withdrawalOrdersService.cancelTransfer(request); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |