roleAllow(UserRole::CONTRACT_ADMIN); } protected function getParam(): IParam { return $this->param; } protected function run(Request $request): JsonResponse { $param = $this->param; $currentContractId = $this->loginUser()->getCurrentContractId(); if (!$currentContractId) { throw new AppCommonException("認証不正"); } $condition = [ ...$param->toArray(), LoginUserRepository::CONDITION_CONTRACT_ID => $currentContractId, ]; $list = $this->repository->get($condition); return $this->successResponse([ 'records' => $list ]); } }