新增了获取我历史问诊医生列表接口

This commit is contained in:
wucongxing8150 2024-10-24 14:31:41 +08:00
parent bed64ae079
commit 2f74a74705
2 changed files with 17 additions and 0 deletions

View File

@ -74,6 +74,20 @@ class PatientDoctorController extends AbstractController
return $this->response->json($data);
}
/**
* 获取我历史问诊医生列表
* @return ResponseInterface
*/
public function getHistoryDoctorList(): ResponseInterface
{
$user_info = $this->request->getAttribute("userInfo") ?? [];
$PatientDoctorService = new PatientDoctorService();
$data = $PatientDoctorService->getIndexPatientDoctorLimit($user_info['client_user_id']);
return $this->response->json($data);
}
/**
* 获取医生评价
* @return ResponseInterface

View File

@ -402,6 +402,9 @@ Router::addGroup('/patient', function () {
// 获取我的问诊、关注医生列表
Router::get('/my', [PatientDoctorController::class, 'getDoctorList']);
// 获取我历史问诊医生列表
Router::get('/my', [PatientDoctorController::class, 'getHistoryDoctorList']);
// 获取医生评价
Router::get('/evaluation/{doctor_id:\d+}', [PatientDoctorController::class, 'getDoctorEvaluationList']);