拆分医生详情接口,

This commit is contained in:
2024-01-03 11:57:14 +08:00
parent b53b0204cf
commit 6342f28467
6 changed files with 442 additions and 183 deletions
@@ -31,17 +31,6 @@ class PatientDoctorController extends AbstractController
return $this->response->json($data);
}
/**
* 获取问诊医生详情
* @return ResponseInterface
*/
public function getInquiryDoctorInfo(): ResponseInterface
{
$PatientDoctorService = new PatientDoctorService();
$data = $PatientDoctorService->getInquiryDoctorInfo();
return $this->response->json($data);
}
/**
* 医生详情简介-详情中的简介
* @return ResponseInterface
+23
View File
@@ -10,6 +10,7 @@ use App\Request\UserDoctorRequest;
use App\Services\DoctorAuthService;
use App\Services\DoctorInquiryService;
use App\Services\ImService;
use App\Services\PatientDoctorService;
use App\Services\UserDoctorService;
use Extend\TencentIm\Account;
use GuzzleHttp\Exception\GuzzleException;
@@ -338,4 +339,26 @@ class UserDoctorController extends AbstractController
$data = $UserDoctorService->addDoctorInquiry();
return $this->response->json($data);
}
/**
* 获取医生详情-问诊
* @return ResponseInterface
*/
public function getDoctorInfoInquiry(): ResponseInterface
{
$userDoctorService = new UserDoctorService();
$data = $userDoctorService->getDoctorInfoInquiry();
return $this->response->json($data);
}
/**
* 获取医生开启的服务
* @return ResponseInterface
*/
public function getDoctorOpenInquiryService(): ResponseInterface
{
$userDoctorService = new UserDoctorService();
$data = $userDoctorService->getDoctorOpenInquiryService();
return $this->response->json($data);
}
}