| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/withdraw") |
| | | @Api(tags = {"用户端-提现"}) |
| | | @Api(tags = {"用户端-个人中心-提现"}) |
| | | public class WithdrawController { |
| | | |
| | | @Resource |
| | |
| | | private TokenService tokenService; |
| | | |
| | | @GetMapping("/withdrawList") |
| | | @ApiOperation(value = "提现列表", tags = {"用户端-个人中心"}) |
| | | @ApiOperation(value = "提现列表", tags = {"用户端-个人中心-提现"}) |
| | | public R<WithdrawListVO> withdrawList() { |
| | | LoginUserInfo loginUser = tokenService.getLoginUserByUser(); |
| | | if (null == loginUser) { |
| | |
| | | return R.ok(withdrawService.withdrawList(loginUser.getUserid())); |
| | | } |
| | | |
| | | @GetMapping("/withdrawDetail") |
| | | @ApiOperation(value = "提现详情", tags = {"用户端-个人中心-提现"}) |
| | | public R<WithdrawListVO> withdrawDetail() { |
| | | LoginUserInfo loginUser = tokenService.getLoginUserByUser(); |
| | | if (null == loginUser) { |
| | | return R.loginExpire("登录失效!"); |
| | | } |
| | | return R.ok(withdrawService.withdrawList(loginUser.getUserid())); |
| | | } |
| | | |
| | | @GetMapping("/confirmWithdraw") |
| | | @ApiOperation(value = "确认提现", tags = {"用户端-个人中心"}) |
| | | @ApiOperation(value = "确认提现", tags = {"用户端-个人中心-提现"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", dataType = "Integer", required = true) |
| | | }) |
| | |
| | | } |
| | | |
| | | @GetMapping("/withdrawRecord") |
| | | @ApiOperation(value = "提现记录", tags = {"用户端-个人中心"}) |
| | | @ApiOperation(value = "提现记录", tags = {"用户端-个人中心-提现"}) |
| | | public R<List<Withdraw>> withdrawRecord() { |
| | | LoginUserInfo loginUser = tokenService.getLoginUserByUser(); |
| | | if (null == loginUser) { |