request->params([ ['from_type', ''] ]); $data['account_type'] = MemberAccountTypeDict::POINT; return success((new MemberAccountService())->getPage($data)); } /** * 余额流水 * @return Response */ public function balance(): Response { $data = $this->request->params([ ['from_type', ''] ]); $data['account_type'] = MemberAccountTypeDict::BALANCE; return success((new MemberAccountService())->getPage($data)); } /** * 零钱流水 * @return Response */ public function money(): Response { $data = $this->request->params([ ['from_type', ''] ]); $data['account_type'] = MemberAccountTypeDict::MONEY; return success((new MemberAccountService())->getPage($data)); } /** * 账户记录数量 * @return Response * @throws DbException */ public function count(): Response { $data = $this->request->params([ ['from_type', ''], ['account_type', ''] ]); return success(data:(new MemberAccountService())->getCount($data)); } /** * 佣金流水 * @return Response */ public function commission(): Response { $data = $this->request->params([ ['from_type', ''] ]); $data['account_type'] = MemberAccountTypeDict::COMMISSION; return success((new MemberAccountService())->getPage($data)); } /** * 账户来源 * @param $account_type * @return Response */ public function getFromType($account_type): Response { return success(MemberAccountChangeTypeDict::getType($account_type)); } }