新增了获取我历史问诊医生列表接口
This commit is contained in:
parent
bed64ae079
commit
2f74a74705
@ -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
|
||||
|
||||
@ -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']);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user