新增获取系统问诊配置接口

This commit is contained in:
2023-02-27 13:58:30 +08:00
parent 8a87298095
commit 9b137d16f5
10 changed files with 236 additions and 66 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Controller;
use App\Request\SystemRequest;
use App\Services\SystemService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseInterface;
/**
* 系统配置
*/
class SystemController extends AbstractController
{
/**
* 获取系统问诊时间
* 快速问诊-问诊购药
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getSystemInquiryConfig(): ResponseInterface
{
$request = $this->container->get(SystemRequest::class);
$request->scene('getSystemInquiryConfig')->validateResolved();
$SystemService = new SystemService();
$data = $SystemService->getSystemInquiryConfig();
return $this->response->json($data);
}
}