| | |
| | | package cc.mrbird.febs.dapp.controller; |
| | | |
| | | import cc.mrbird.febs.common.annotation.ControllerEndpoint; |
| | | import cc.mrbird.febs.common.controller.BaseController; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * @author |
| | |
| | | return new FebsResponse().success().data(getDataTable(dappWalletService.fundFlowInPage(dappFundFlowEntity, request))); |
| | | } |
| | | |
| | | @PostMapping(value = "/withdrawAgree/{id}") |
| | | public FebsResponse withdrawAgree(@PathVariable("id") Long id) { |
| | | dappWalletService.withdrawAgreeOrNot(id, 1); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @PostMapping(value = "/withdrawDisAgree/{id}") |
| | | public FebsResponse withdrawDisAgree(@PathVariable("id") Long id) { |
| | | dappWalletService.withdrawAgreeOrNot(id, 2); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @RequestMapping(value = "accountMoneyChangeFlow") |
| | | public FebsResponse accountMoneyChangeFlow(DappAccountMoneyChangeEntity record, QueryRequest request) { |
| | | return new FebsResponse().success().data(getDataTable(dappWalletService.accountMoneyChangeInPage(record, request))); |
| | | } |
| | | |
| | | /** |
| | | * 提现转账列表-同意 |
| | | */ |
| | | @PostMapping("withdrawAgree/{id}") |
| | | @ControllerEndpoint(operation = "提现转账列表-同意", exceptionMessage = "操作失败") |
| | | public FebsResponse agreeWithdraw(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return dappWalletService.agreeWithdraw(id); |
| | | } |
| | | |
| | | /** |
| | | * 提现转账列表-拒绝 |
| | | */ |
| | | @PostMapping("withdrawDisAgree/{id}") |
| | | @ControllerEndpoint(operation = "提现转账列表-拒绝", exceptionMessage = "操作失败") |
| | | public FebsResponse disagreeWithdraw(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return dappWalletService.disagreeWithdraw(id); |
| | | } |
| | | } |