| | |
| | | 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; |
| | |
| | | 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("操作成功"); |
| | | } |
| | | |
| | | |
| | | } |