hospital-applets-api/app/Controller/MessageNoticeController.php
2023-03-27 09:08:34 +08:00

46 lines
1.2 KiB
PHP

<?php
namespace App\Controller;
use App\Services\MessageNoticeService;
use Psr\Http\Message\ResponseInterface;
/**
* 通知消息
* 不区分各端
*/
class MessageNoticeController extends AbstractController
{
/**
* 获取医生服务消息列表-分页
* @return ResponseInterface
*/
public function getDoctorMessageService(): ResponseInterface
{
$MessageNoticeService = new MessageNoticeService();
$data = $MessageNoticeService->getDoctorMessageService();
return $this->response->json($data);
}
/**
* 获取医生系统公告列表-分页
* @return ResponseInterface
*/
public function getDoctorMessageSystem(): ResponseInterface
{
$MessageNoticeService = new MessageNoticeService();
$data = $MessageNoticeService->getDoctorMessageSystem();
return $this->response->json($data);
}
/**
* 获取医生系统公告详情
* @return ResponseInterface
*/
public function getDoctorMessageSystemInfo(): ResponseInterface
{
$MessageNoticeService = new MessageNoticeService();
$data = $MessageNoticeService->getDoctorMessageSystemInfo();
return $this->response->json($data);
}
}