-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsystem.php
50 lines (43 loc) · 1.49 KB
/
system.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* @name 生蚝科技TP6-RBAC开发框架-R-系统管理模块路由
* @author Oyster Cheung <[email protected]>
* @since 2020-07-12
* @version 2020-08-02
*/
use think\facade\Route;
// 系统管理模块
Route::group('system', function () {
Route::group('user', function () {
Route::get('index', 'system.User/index');
Route::post('list', 'system.User/getList');
Route::post('toCU', 'system.User/toCU');
Route::post('delete', 'system.User/toDelete');
Route::post('resetPassword', 'system.User/toResetPassword');
Route::post('banOrOpen', 'system.User/toBanOrOpen');
});
Route::group('menu', function () {
Route::get('index', 'system.Menu/index');
Route::post('toCU', 'system.Menu/toCU');
Route::post('delete', 'system.Menu/toDelete');
});
Route::group('role', function () {
Route::get('index', 'system.Role/index');
Route::post('list', 'system.Role/getList');
Route::post('toCU', 'system.Role/toCU');
Route::post('delete', 'system.Role/toDelete');
Route::post('setDefault', 'system.Role/toSetDefault');
Route::post('setPermission', 'system.Role/toSetPermission');
});
Route::group('setting', function () {
Route::get('index', 'system.Setting/index');
Route::post('list', 'system.Setting/getList');
Route::post('toCU', 'system.Setting/toCU');
Route::post('delete', 'system.Setting/toDelete');
});
});
Route::group('error', function () {
Route::get('appInfo', 'error/appInfo');
Route::get('noPermission', 'error/noPermission');
Route::get('/', 'Error/index');
});