新增患者个人中心-详情接口
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Request\UserPatientRequest;
|
||||
use App\Services\UserPatientService;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
@@ -12,5 +13,25 @@ use Psr\Http\Message\ResponseInterface;
|
||||
*/
|
||||
class UserPatientController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* 获取患者个人中心数据
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function getPatientCenter(): ResponseInterface
|
||||
{
|
||||
$UserPatientService = new UserPatientService();
|
||||
$data = $UserPatientService->getPatientCenter();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者信息
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function getPatientCenterInfo(): ResponseInterface
|
||||
{
|
||||
$UserPatientService = new UserPatientService();
|
||||
$data = $UserPatientService->getPatientCenterInfo();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user