客户端消息通知

This commit is contained in:
mzl
2025-08-21 19:26:28 +08:00
parent c1de258ce2
commit 5dc515f712
5 changed files with 184 additions and 11 deletions
+11 -1
View File
@@ -64,6 +64,17 @@ Route::group('/common', function () {
Route::any('/cache/clear', [app\common\controller\PresetController::class, 'cacheClear']);
Route::any('/menus', [app\common\controller\PresetController::class, 'menus']);
});
// 消息通知
Route::group('/notice', function () {
Route::any('/list', [app\common\controller\MessageUserStatusController::class, 'index']);
Route::any('/show', [app\common\controller\MessageUserStatusController::class, 'show']);
Route::any('/read', [app\common\controller\MessageUserStatusController::class, 'read']);
Route::any('/destroy', [app\common\controller\MessageUserStatusController::class, 'destroy']);
Route::any('/unread', [app\common\controller\MessageUserStatusController::class, 'listUnRead']);
});
});
// 后台管理
@@ -73,7 +84,6 @@ Route::group('/admin', function () {
Route::any('/list', [app\common\controller\MessageNotificationsController::class, 'index']);
Route::any('/show', [app\common\controller\MessageNotificationsController::class, 'show']);
Route::any('/push', [app\common\controller\MessageNotificationsController::class, 'push']);
// Route::any('/update', [app\common\controller\MessageNotificationsController::class, 'update']);
Route::any('/destroy', [app\common\controller\MessageNotificationsController::class, 'destroy']);
});