35 lines
900 B
PHP
35 lines
900 B
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);
|
|
}
|
|
} |