新增 获取家庭成员病情记录列表-分页
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user