新增发送短信log记录

This commit is contained in:
2023-03-23 15:14:53 +08:00
parent 7c9e3e8094
commit 01e2152ec2
5 changed files with 58 additions and 2 deletions
@@ -202,6 +202,21 @@ class PatientFamilyController extends AbstractController
return $this->response->json($data);
}
/**
* 获取家庭成员用药记录列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getFamilyProductRecord(): ResponseInterface
{
$request = $this->container->get(PatientFamilyRequest::class);
$request->scene('getFamilyProductRecordList')->validateResolved();
$patientFamilyService = new PatientFamilyService();
$data = $patientFamilyService->getFamilyProductRecord();
return $this->response->json($data);
}
/**
* 检测入参身份证号
+3
View File
@@ -87,6 +87,9 @@ class PatientFamilyRequest extends FormRequest
'diagnosis_hospital',//确诊医院
'drugs_name', // 家族病史
],
'getFamilyProductRecord' => [ // 获取家庭成员用药记录列表
'family_id',
],
];
/**
+20
View File
@@ -850,4 +850,24 @@ class PatientFamilyService extends BaseService
return success();
}
/**
* 获取家庭成员用药记录列表
* @return array
*/
public function getFamilyProductRecord(): array
{
$user_info = $this->request->getAttribute("userInfo");
$family_id = $this->request->input('family_id');
$page = $this->request->input('page', 1);
$per_page = $this->request->input('per_page', 10);
return success();
}
}