新增 获取家庭成员病情记录列表-分页

This commit is contained in:
2023-11-20 16:26:18 +08:00
parent 65a5f6bc4d
commit 7df80196c2
6 changed files with 81 additions and 37 deletions
@@ -2,7 +2,6 @@
namespace App\Controller;
use App\Constants\HttpEnumCode;
use App\Request\PatientPathographyRequest;
use App\Services\PatientPathographyService;
use Psr\Http\Message\ResponseInterface;
@@ -29,4 +28,25 @@ class PatientPathographyController extends AbstractController
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);
}
}