hospital-applets-api/app/Controller/UserPharmacistController.php

31 lines
882 B
PHP

<?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);
}
}