container->get(PatientPathographyRequest::class); $request->scene('existFamilyPathography')->validateResolved(); $PatientPathographyService = new PatientPathographyService(); $data = $PatientPathographyService->existFamilyPathography(); return $this->response->json($data); }catch (\Throwable $e){ return $this->response->json(fail()); } } /** * 获取家庭成员病情记录列表-分页 * @return ResponseInterface */ public function getFamilyPathographyList(): ResponseInterface { try { $request = $this->container->get(PatientPathographyRequest::class); }catch (\Throwable $e){ return $this->response->json(fail()); } $request->scene('getFamilyPathographyList')->validateResolved(); $PatientPathographyService = new PatientPathographyService(); $data = $PatientPathographyService->getFamilyPathographyList(); return $this->response->json($data); } }