This commit is contained in:
2026-02-18 19:41:03 +08:00
parent a0c2350662
commit 6543e2ccdd
18 changed files with 4885 additions and 1196 deletions

View File

@@ -173,6 +173,23 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
Route::post('/delete', [\App\Http\Controllers\System\Admin\Upload::class, 'delete']);
Route::post('/batch-delete', [\App\Http\Controllers\System\Admin\Upload::class, 'batchDelete']);
});
// 通知管理
Route::prefix('notifications')->group(function () {
Route::get('/', [\App\Http\Controllers\System\Admin\Notification::class, 'index']);
Route::get('/unread', [\App\Http\Controllers\System\Admin\Notification::class, 'unread']);
Route::get('/unread-count', [\App\Http\Controllers\System\Admin\Notification::class, 'unreadCount']);
Route::get('/{id}', [\App\Http\Controllers\System\Admin\Notification::class, 'show']);
Route::post('/{id}/read', [\App\Http\Controllers\System\Admin\Notification::class, 'markAsRead']);
Route::post('/batch-read', [\App\Http\Controllers\System\Admin\Notification::class, 'batchMarkAsRead']);
Route::post('/read-all', [\App\Http\Controllers\System\Admin\Notification::class, 'markAllAsRead']);
Route::delete('/{id}', [\App\Http\Controllers\System\Admin\Notification::class, 'destroy']);
Route::post('/batch-delete', [\App\Http\Controllers\System\Admin\Notification::class, 'batchDelete']);
Route::post('/clear-read', [\App\Http\Controllers\System\Admin\Notification::class, 'clearRead']);
Route::get('/statistics', [\App\Http\Controllers\System\Admin\Notification::class, 'statistics']);
Route::post('/send', [\App\Http\Controllers\System\Admin\Notification::class, 'send']);
Route::post('/retry-unsent', [\App\Http\Controllers\System\Admin\Notification::class, 'retryUnsent']);
});
});
// WebSocket 管理