初始化提交

This commit is contained in:
2023-02-17 17:10:16 +08:00
commit 4ca844f470
152 changed files with 20390 additions and 0 deletions
@@ -0,0 +1,66 @@
<?php
namespace App\Controller;
use App\Request\PatientDoctorRequest;
use App\Services\PatientDoctorService;
use App\Services\UserDoctorService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseInterface;
/**
* 患者端医生数据
*/
class PatientDoctorController extends AbstractController
{
/**
* 获取问诊医生列表
* 专家问诊-公益问诊共用
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getInquiryDoctorList(): ResponseInterface
{
$request = $this->container->get(PatientDoctorRequest::class);
$request->scene('getInquiryDoctorList')->validateResolved();
$PatientDoctorService = new PatientDoctorService();
$data = $PatientDoctorService->getInquiryDoctorList();
return $this->response->json($data);
}
/**
* 获取问诊医生详情
* @return ResponseInterface
*/
public function getInquiryDoctorInfo(): ResponseInterface
{
$PatientDoctorService = new PatientDoctorService();
$data = $PatientDoctorService->getInquiryDoctorInfo();
return $this->response->json($data);
}
/**
* 获取医生评价
* @return ResponseInterface
*/
public function getDoctorEvaluationList(): ResponseInterface
{
$PatientDoctorService = new PatientDoctorService();
$data = $PatientDoctorService->getDoctorEvaluationList();
return $this->response->json($data);
}
/**
* 医生详情简介-详情中的简介
* @return ResponseInterface
*/
public function getDoctorProfile(): ResponseInterface
{
$PatientDoctorService = new PatientDoctorService();
$data = $PatientDoctorService->getDoctorProfile();
return $this->response->json($data);
}
}