service = new DepositService(); } /** * 列表 * @return array */ public function index() { $pageSize = request()->get('limit', 10); $list = $this->service->getDataList(request()->all(), $pageSize); $message = array( "msg" => '操作成功', "code" => 0, "data" => isset($list['list'])? $list['list']:[], "counts" => isset($list['counts'])? $list['counts']:[], "count" => isset($list['total'])? $list['total']:0, ); return $message; } /** * 审核 * @return array */ public function confirm() { $params = request()->post(); if(DepositService::make()->confirm($this->userId,$params)){ return message(DepositService::make()->getError(), true); }else{ return message(DepositService::make()->getError(), false); } } /** * 打款 * @return array */ public function payment() { $params = request()->post(); if(DepositService::make()->payment($this->userId,$params)){ return message(DepositService::make()->getError(), true); }else{ return message(DepositService::make()->getError(), false); } } /** * 删除数据 * @return mixed * @since 2020/11/11 * @author laravel开发员 */ public function delete() { $result = $this->service->delete(); return $result; } }