request->params([ [ 'member_id', '' ], [ 'from_type', '' ], [ 'create_time', [] ], ]); $data[ 'account_type' ] = 'point'; return success(( new MemberAccountService() )->getPage($data)); } /** * 余额流水 * @return Response */ public function balance() { $data = $this->request->params([ [ 'member_id', '' ], [ 'from_type', '' ], [ 'create_time', [] ], ]); $data[ 'account_type' ] = 'balance'; return success(( new MemberAccountService() )->getPage($data)); } /** * 零钱流水 * @return Response */ public function money() { $data = $this->request->params([ [ 'member_id', '' ], [ 'from_type', '' ], [ 'create_time', [] ], ]); $data[ 'account_type' ] = 'money'; return success(( new MemberAccountService() )->getPage($data)); } /** * 积分账户调整 */ public function adjustPoint() { $data = $this->request->params([ [ 'member_id', '' ], [ 'account_data', 0 ], [ 'memo', '' ], ]); $res = ( new MemberAccountService() )->adjustPoint($data); return success(100011, [ 'id' => $res ]); } /** * 余额账户调整 */ public function adjustBalance() { $data = $this->request->params([ [ 'member_id', '' ], [ 'account_data', 0 ], [ 'memo', '' ], ]); $res = ( new MemberAccountService() )->adjustBalance($data); return success(100011, [ 'id' => $res ]); } /** * 账户变化类型 * @param $account_type */ public function changeType(string $account_type) { $res = ( new MemberAccountService() )->getFromType($account_type); return success($res); } }