187 lines
6.3 KiB
PHP
187 lines
6.3 KiB
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
// 医生问诊配置
|
|
use App\Request\DoctorInquiryConfigRequest;
|
|
use App\Request\UserDoctorRequest;
|
|
use App\Services\DoctorInquiryService;
|
|
use Psr\Container\ContainerExceptionInterface;
|
|
use Psr\Container\NotFoundExceptionInterface;
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
class DoctorInquiryConfigController extends AbstractController
|
|
{
|
|
/**
|
|
* 获取医生问诊服务开启状态
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function getDoctorInquiryConfigOpenStatus(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('getDoctorInquiryConfigOpenStatus')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->getDoctorInquiryConfigOpenStatus();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取医生问诊配置
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function getDoctorInquiryConfig(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('getDoctorInquiryConfig')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->getDoctorInquiryConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 医生问诊开关
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function putDoctorInquiryOpen(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('putDoctorInquiryOpen')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->putDoctorInquiryOpen();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 修改医生问诊配置
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function putDoctorInquiryConfig(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('putDoctorInquiryConfig')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->putDoctorInquiryConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取医生问诊配置-疑难会诊-服务设置
|
|
* @return ResponseInterface
|
|
*/
|
|
public function getDoctorInquiryDifficultConfig(): ResponseInterface
|
|
{
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->getDoctorInquiryDifficultConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 新增医生问诊配置-疑难会诊-服务设置
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function addDoctorInquiryDifficultConfig(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('addDoctorInquiryDifficultConfig')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->addDoctorInquiryDifficultConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 修改医生问诊配置-疑难会诊-服务设置
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function putDoctorInquiryDifficultConfig(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('putDoctorInquiryDifficultConfig')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->putDoctorInquiryDifficultConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取医生问诊配置-随访包
|
|
* @return ResponseInterface
|
|
*/
|
|
public function getDoctorInquiryFollowConfig(): ResponseInterface
|
|
{
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->getDoctorInquiryFollowConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取医生问诊配置-随访包-列表
|
|
* @return ResponseInterface
|
|
*/
|
|
public function getDoctorInquiryFollowItemConfig(): ResponseInterface
|
|
{
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->getDoctorInquiryFollowItemConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 新增医生问诊配置-随访包
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function addDoctorInquiryFollowConfig(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('addDoctorInquiryFollowConfig')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->addDoctorInquiryFollowConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 修改医生问诊配置-随访包
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function putDoctorInquiryFollowConfig(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(DoctorInquiryConfigRequest::class);
|
|
$request->scene('putDoctorInquiryFollowConfig')->validateResolved();
|
|
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->putDoctorInquiryFollowConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取医生问诊配置-健康包
|
|
* @return ResponseInterface
|
|
*/
|
|
public function getDoctorInquiryHealthConfig(): ResponseInterface
|
|
{
|
|
$DoctorInquiryService = new DoctorInquiryService();
|
|
$data = $DoctorInquiryService->getDoctorInquiryHealthConfig();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
} |