request->params([ [ 'status', '' ], [ 'account_type', '' ] ]), function($value){ return $value !== ''; }); return success(( new MemberCashOutService() )->getPage($data)); } /** * 提现详情 * @return Response */ public function info($id) { return success(( new MemberCashOutService() )->getInfo($id)); } /** * 提现配置 * @return Response */ public function config() { return success(( new MemberCashOutService() )->getCashOutConfig()); } /** * 转账方式 * @return Response */ public function getTransferType() { return success(TransferDict::getTransferType([], false)); } /** * 申请提现 * @return Response */ public function apply() { $data = $this->request->params([ [ 'apply_money', 0 ], [ 'account_type', MemberAccountTypeDict::MONEY ], [ 'transfer_type', '' ], [ 'account_id', 0 ] ]); $this->validate($data, 'app\validate\member\CashOut.apply'); return success(( new MemberCashOutService() )->apply($data)); } /** * 撤销提现申请 * @param $id * @return Response */ public function cancel($id) { return success(( new MemberCashOutService() )->cancel($id)); } }