1
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Request\MessageNoticeRequest;
|
||||
use App\Services\MessageNoticeService;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
@@ -54,4 +57,31 @@ class MessageNoticeController extends AbstractController
|
||||
$data = $MessageNoticeService->putMessageReadId();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 一键消息已读
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function putMessageRead(): ResponseInterface
|
||||
{
|
||||
$request = $this->container->get(MessageNoticeRequest::class);
|
||||
$request->scene('putMessageRead')->validateResolved();
|
||||
|
||||
$MessageNoticeService = new MessageNoticeService();
|
||||
$data = $MessageNoticeService->putMessageRead();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者系统消息通知最后一条消息列表
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function getPatientMessageServiceLast(): ResponseInterface
|
||||
{
|
||||
$MessageNoticeService = new MessageNoticeService();
|
||||
$data = $MessageNoticeService->getPatientMessageServiceLast();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user