调整数据库表的单复数

This commit is contained in:
2026-02-19 10:39:38 +08:00
parent 736a41a718
commit d310a29c03
56 changed files with 45577 additions and 506 deletions

View File

@@ -16,7 +16,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
Route::post('/change-password', [\App\Http\Controllers\Auth\Admin\Auth::class, 'changePassword']);
// 用户管理
Route::prefix('users')->group(function () {
Route::prefix('user')->group(function () {
Route::get('/', [\App\Http\Controllers\Auth\Admin\User::class, 'index']);
Route::get('/{id}', [\App\Http\Controllers\Auth\Admin\User::class, 'show']);
Route::post('/', [\App\Http\Controllers\Auth\Admin\User::class, 'store']);
@@ -32,7 +32,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 角色管理
Route::prefix('roles')->group(function () {
Route::prefix('role')->group(function () {
Route::get('/', [\App\Http\Controllers\Auth\Admin\Role::class, 'index']);
Route::get('/all', [\App\Http\Controllers\Auth\Admin\Role::class, 'getAll']);
Route::get('/{id}', [\App\Http\Controllers\Auth\Admin\Role::class, 'show']);
@@ -48,7 +48,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 权限管理
Route::prefix('permissions')->group(function () {
Route::prefix('permission')->group(function () {
Route::get('/', [\App\Http\Controllers\Auth\Admin\Permission::class, 'index']);
Route::get('/tree', [\App\Http\Controllers\Auth\Admin\Permission::class, 'tree']);
Route::get('/menu', [\App\Http\Controllers\Auth\Admin\Permission::class, 'menu']);
@@ -61,7 +61,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 部门管理
Route::prefix('departments')->group(function () {
Route::prefix('department')->group(function () {
Route::get('/', [\App\Http\Controllers\Auth\Admin\Department::class, 'index']);
Route::get('/tree', [\App\Http\Controllers\Auth\Admin\Department::class, 'tree']);
Route::get('/all', [\App\Http\Controllers\Auth\Admin\Department::class, 'getAll']);
@@ -77,7 +77,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 在线用户管理
Route::prefix('online-users')->group(function () {
Route::prefix('online-user')->group(function () {
Route::get('/count', [\App\Http\Controllers\Auth\Admin\User::class, 'getOnlineCount']);
Route::get('/', [\App\Http\Controllers\Auth\Admin\User::class, 'getOnlineUsers']);
Route::get('/{userId}/sessions', [\App\Http\Controllers\Auth\Admin\User::class, 'getUserSessions']);
@@ -89,7 +89,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
// 系统管理模块
Route::prefix('system')->group(function () {
// 系统配置管理
Route::prefix('configs')->group(function () {
Route::prefix('setting')->group(function () {
Route::get('/', [\App\Http\Controllers\System\Admin\Config::class, 'index']);
Route::get('/all', [\App\Http\Controllers\System\Admin\Config::class, 'getByGroup']);
Route::get('/groups', [\App\Http\Controllers\System\Admin\Config::class, 'getGroups']);
@@ -102,7 +102,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 系统操作日志
Route::prefix('logs')->group(function () {
Route::prefix('log')->group(function () {
Route::get('/', [\App\Http\Controllers\System\Admin\Log::class, 'index']);
Route::get('/export', [\App\Http\Controllers\System\Admin\Log::class, 'export']);
Route::get('/statistics', [\App\Http\Controllers\System\Admin\Log::class, 'getStatistics']);
@@ -113,7 +113,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 数据字典管理
Route::prefix('dictionaries')->group(function () {
Route::prefix('dictionary')->group(function () {
Route::get('/', [\App\Http\Controllers\System\Admin\Dictionary::class, 'index']);
Route::get('/all', [\App\Http\Controllers\System\Admin\Dictionary::class, 'all']);
Route::get('/{id}', [\App\Http\Controllers\System\Admin\Dictionary::class, 'show']);
@@ -125,7 +125,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 数据字典项管理
Route::prefix('dictionary-items')->group(function () {
Route::prefix('dictionary-item')->group(function () {
Route::get('/', [\App\Http\Controllers\System\Admin\Dictionary::class, 'getItemsList']);
Route::get('/all', [\App\Http\Controllers\System\Admin\Dictionary::class, 'getAllItems']);
Route::post('/', [\App\Http\Controllers\System\Admin\Dictionary::class, 'storeItem']);
@@ -136,7 +136,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 任务管理
Route::prefix('tasks')->group(function () {
Route::prefix('task')->group(function () {
Route::get('/', [\App\Http\Controllers\System\Admin\Task::class, 'index']);
Route::get('/all', [\App\Http\Controllers\System\Admin\Task::class, 'all']);
Route::get('/statistics', [\App\Http\Controllers\System\Admin\Task::class, 'getStatistics']);
@@ -150,11 +150,11 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 城市数据管理
Route::prefix('cities')->group(function () {
Route::prefix('city')->group(function () {
Route::get('/', [\App\Http\Controllers\System\Admin\City::class, 'index']);
Route::get('/tree', [\App\Http\Controllers\System\Admin\City::class, 'tree']);
Route::get('/{id}', [\App\Http\Controllers\System\Admin\City::class, 'show']);
Route::get('/{id}/children', [\App\Http\Controllers\System\Admin\City::class, 'children']);
Route::get('/code/{code}/children', [\App\Http\Controllers\System\Admin\City::class, 'children']);
Route::get('/provinces', [\App\Http\Controllers\System\Admin\City::class, 'provinces']);
Route::get('/{provinceId}/cities', [\App\Http\Controllers\System\Admin\City::class, 'cities']);
Route::get('/{cityId}/districts', [\App\Http\Controllers\System\Admin\City::class, 'districts']);
@@ -175,7 +175,7 @@ Route::middleware(['auth.check:admin', 'log.request'])->group(function () {
});
// 通知管理
Route::prefix('notifications')->group(function () {
Route::prefix('notification')->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']);