新增药师端首页、修正问诊列表医生数据

This commit is contained in:
2023-03-17 15:09:22 +08:00
parent a1101d4d12
commit f64c46b30c
12 changed files with 146 additions and 48 deletions
-5
View File
@@ -346,14 +346,9 @@ class UserDoctorController extends AbstractController
/**
* 新增医生接诊
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function addDoctorInquiry(): ResponseInterface
{
$request = $this->container->get(UserDoctorRequest::class);
$request->scene('addDoctorInquiry')->validateResolved();
$UserDoctorService = new UserDoctorService();
$data = $UserDoctorService->addDoctorInquiry();
return $this->response->json($data);
@@ -0,0 +1,31 @@
<?php
namespace App\Controller;
use App\Request\UserPharmacistRequest;
use App\Services\UserPharmacistService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseInterface;
/**
* 药师
*/
class UserPharmacistController extends AbstractController
{
/**
* 获取药师审核处方列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getPrescriptionList(): ResponseInterface
{
$request = $this->container->get(UserPharmacistRequest::class);
$request->scene('getPrescriptionList')->validateResolved();
$UserPharmacistService = new UserPharmacistService();
$data = $UserPharmacistService->getPrescriptionList();
return $this->response->json($data);
}
}