修改病情记录路由,用户id判断规则

This commit is contained in:
2023-12-14 13:12:33 +08:00
parent a8cef4ebd5
commit ec1a2fc134
2 changed files with 68 additions and 6 deletions
+18
View File
@@ -797,3 +797,21 @@ Router::addGroup('/inquiry', function () {
// 获取弹窗数据
Router::get('/popup', [UserController::class, 'getUserPopup']);
// 病情记录
Router::addGroup('/pathography', function () {
// 检测家庭成员是否存在病情记录
Router::get('/exist', [PatientPathographyController::class, 'existFamilyPathography']);
// 获取家庭成员病情记录列表-分页
Router::get('', [PatientPathographyController::class, 'getFamilyPathographyPage']);
// 获取家庭成员病情记录详情
Router::get('/{pathography_id:\d+}', [PatientPathographyController::class, 'getFamilyPathographyInfo']);
// 获取家庭成员病情记录分组
Router::get('/group', [PatientPathographyController::class, 'getFamilyPathographyGroup']);
// 删除家庭成员病情记录
Router::delete('/{pathography_id:\d+}', [PatientPathographyController::class, 'deleteFamilyPathography']);
});