37 lines
944 B
PHP
37 lines
944 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Request\UserPatientRequest;
|
|
use App\Services\UserPatientService;
|
|
use Psr\Container\ContainerExceptionInterface;
|
|
use Psr\Container\NotFoundExceptionInterface;
|
|
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);
|
|
}
|
|
} |