新增药师端首页、修正问诊列表医生数据
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user