修改了预约视频时间、增加了创建音视频房间接口

This commit is contained in:
2024-02-01 15:04:40 +08:00
parent fcfb84e6c6
commit 10aae768cb
11 changed files with 652 additions and 318 deletions
+49
View File
@@ -0,0 +1,49 @@
<?php
namespace App\Controller;
use App\Request\InquiryRequest;
use App\Request\VideoRequest;
use App\Services\InquiryService;
use App\Services\VideoService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseInterface;
/**
* 视频
*/
class VideoController extends AbstractController
{
/**
* 医生设置视频预约时间
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function addVideoReservationDate(): ResponseInterface
{
$request = $this->container->get(VideoRequest::class);
$request->scene('addVideoReservationDate')->validateResolved();
$videoService = new VideoService();
$data = $videoService->addVideoReservationDate();
return $this->response->json($data);
}
/**
* 创建音视频房间
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function addVideoRoom(): ResponseInterface
{
$request = $this->container->get(VideoRequest::class);
$request->scene('addVideoRoom')->validateResolved();
$videoService = new VideoService();
$data = $videoService->addVideoRoom();
return $this->response->json($data);
}
}