This commit is contained in:
Your Name
2026-03-20 18:00:19 +08:00
parent d765517b74
commit 18fee2e8f8
240 changed files with 976 additions and 280 deletions
@@ -0,0 +1,25 @@
<?php
namespace app\adminapi\controller;
use app\api\logic\ChatNotifyLogic;
/**
* 聊天通知接口(管理端-医生)
*/
class ChatController extends BaseAdminController
{
/**
* 获取当前医生的患者打开会话通知
* 轮询接口,获取后即消费
*/
public function notifications()
{
$doctorId = $this->adminId;
if ($doctorId <= 0) {
return $this->success('', []);
}
$list = ChatNotifyLogic::getNotifies($doctorId, true);
return $this->success('', $list);
}
}