新增患者个人中心-详情接口

This commit is contained in:
2023-03-03 21:03:17 +08:00
parent 7740dad0e5
commit 76cbcff76a
11 changed files with 246 additions and 4 deletions
+21
View File
@@ -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);
}
}