|
|
@ -15,16 +15,16 @@ use app\common\middleware\AdminTokenMiddleware; |
|
|
|
use app\common\middleware\AllowOriginMiddleware; |
|
|
|
use app\common\middleware\AllowOriginMiddleware; |
|
|
|
use app\common\middleware\LogMiddleware; |
|
|
|
use app\common\middleware\LogMiddleware; |
|
|
|
|
|
|
|
|
|
|
|
Route::group(function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//身份规则 |
|
|
|
Route::group(function () { |
|
|
|
|
|
|
|
//身份规则 |
|
|
|
Route::group('system/role', function () { |
|
|
|
Route::group('system/role', function () { |
|
|
|
Route::get('lst', '/getList')->name('systemRoleGetList')->option([ |
|
|
|
Route::get('lst', '/getList')->name('systemRoleGetList')->option([ |
|
|
|
'_alias' => '身份列表', |
|
|
|
'_alias' => '身份列表', |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::post('create', '/create')->name('systemRoleCreate')->option([ |
|
|
|
Route::post('create', '/create')->name('systemRoleCreate')->option([ |
|
|
|
'_alias' => '身份添加', |
|
|
|
'_alias' => '身份添加', |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::get('create/form', '/createForm')->name('systemRoleCreateForm')->option([ |
|
|
|
Route::get('create/form', '/createForm')->name('systemRoleCreateForm')->option([ |
|
|
|
'_alias' => '身份添加表单', |
|
|
|
'_alias' => '身份添加表单', |
|
|
|
'_auth' => false, |
|
|
|
'_auth' => false, |
|
|
@ -32,7 +32,7 @@ Route::group(function () { |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::post('update/:id', '/update')->name('systemRoleUpdate')->option([ |
|
|
|
Route::post('update/:id', '/update')->name('systemRoleUpdate')->option([ |
|
|
|
'_alias' => '身份编辑', |
|
|
|
'_alias' => '身份编辑', |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::get('update/form/:id', '/updateForm')->name('systemRoleUpdateForm')->option([ |
|
|
|
Route::get('update/form/:id', '/updateForm')->name('systemRoleUpdateForm')->option([ |
|
|
|
'_alias' => '身份编辑表单', |
|
|
|
'_alias' => '身份编辑表单', |
|
|
|
'_auth' => false, |
|
|
|
'_auth' => false, |
|
|
@ -40,23 +40,23 @@ Route::group(function () { |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::post('status/:id', '/switchStatus')->name('systemRoleStatus')->option([ |
|
|
|
Route::post('status/:id', '/switchStatus')->name('systemRoleStatus')->option([ |
|
|
|
'_alias' => '身份修改状态', |
|
|
|
'_alias' => '身份修改状态', |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::delete('delete/:id', '/delete')->name('systemRoleDelete')->option([ |
|
|
|
Route::delete('delete/:id', '/delete')->name('systemRoleDelete')->option([ |
|
|
|
'_alias' => '身份删除', |
|
|
|
'_alias' => '身份删除', |
|
|
|
]); |
|
|
|
]); |
|
|
|
})->prefix('admin.system.auth.Role')->option([ |
|
|
|
})->prefix('admin.system.auth.Role')->option([ |
|
|
|
'_path' => '/setting/systemRole', |
|
|
|
'_path' => '/setting/systemRole', |
|
|
|
'_auth' => true, |
|
|
|
'_auth' => true, |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
//Admin管理 |
|
|
|
//Admin管理 |
|
|
|
Route::group('system/admin', function () { |
|
|
|
Route::group('system/admin', function () { |
|
|
|
Route::get('lst', '.Admin/getList')->name('systemAdminLst')->option([ |
|
|
|
Route::get('lst', '.Admin/getList')->name('systemAdminLst')->option([ |
|
|
|
'_alias' => '管理员列表', |
|
|
|
'_alias' => '管理员列表', |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::post('status/:id', '.Admin/switchStatus')->name('systemAdminStatus')->option([ |
|
|
|
Route::post('status/:id', '.Admin/switchStatus')->name('systemAdminStatus')->option([ |
|
|
|
'_alias' => '管理员修改状态', |
|
|
|
'_alias' => '管理员修改状态', |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::get('create/form', '.Admin/createForm')->name('systemAdminCreateForm')->option([ |
|
|
|
Route::get('create/form', '.Admin/createForm')->name('systemAdminCreateForm')->option([ |
|
|
|
'_alias' => '管理员添加表单', |
|
|
|
'_alias' => '管理员添加表单', |
|
|
|
'_auth' => false, |
|
|
|
'_auth' => false, |
|
|
@ -64,7 +64,7 @@ Route::group(function () { |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::post('create', '.Admin/create')->name('systemAdminCreate')->option([ |
|
|
|
Route::post('create', '.Admin/create')->name('systemAdminCreate')->option([ |
|
|
|
'_alias' => '管理员添加', |
|
|
|
'_alias' => '管理员添加', |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
Route::get('update/form/:id', '.Admin/updateForm')->name('systemAdminUpdateForm')->option([ |
|
|
|
Route::get('update/form/:id', '.Admin/updateForm')->name('systemAdminUpdateForm')->option([ |
|
|
|
'_alias' => '管理员编辑表单', |
|
|
|
'_alias' => '管理员编辑表单', |
|
|
@ -82,33 +82,33 @@ Route::group(function () { |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::post('password/:id', '.Admin/password')->name('systemAdminPassword')->option([ |
|
|
|
Route::post('password/:id', '.Admin/password')->name('systemAdminPassword')->option([ |
|
|
|
'_alias' => '管理员修改密码', |
|
|
|
'_alias' => '管理员修改密码', |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Route::delete('delete/:id', '.Admin/delete')->name('systemAdminDelete')->option([ |
|
|
|
Route::delete('delete/:id', '.Admin/delete')->name('systemAdminDelete')->option([ |
|
|
|
'_alias' => '管理员删除', |
|
|
|
'_alias' => '管理员删除', |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
Route::get('log', '.AdminLog/lst')->name('systemAdminLog')->option([ |
|
|
|
Route::get('log', '.AdminLog/lst')->name('systemAdminLog')->option([ |
|
|
|
'_alias' => '操作日志', |
|
|
|
'_alias' => '操作日志', |
|
|
|
'_path' => '/setting/systemLog', |
|
|
|
'_path' => '/setting/systemLog', |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
})->prefix('admin.system.admin')->option([ |
|
|
|
})->prefix('admin.system.admin')->option([ |
|
|
|
'_path' => '/setting/systemAdmin', |
|
|
|
'_path' => '/setting/systemAdmin', |
|
|
|
'_auth' => true, |
|
|
|
'_auth' => true, |
|
|
|
'_append'=> [ |
|
|
|
'_append' => [ |
|
|
|
[ |
|
|
|
[ |
|
|
|
'_name' =>'uploadImage', |
|
|
|
'_name' => 'uploadImage', |
|
|
|
'_path' =>'/setting/systemAdmin', |
|
|
|
'_path' => '/setting/systemAdmin', |
|
|
|
'_alias' => '上传图片', |
|
|
|
'_alias' => '上传图片', |
|
|
|
'_auth' => true, |
|
|
|
'_auth' => true, |
|
|
|
], |
|
|
|
], |
|
|
|
[ |
|
|
|
[ |
|
|
|
'_name' =>'systemAttachmentLst', |
|
|
|
'_name' => 'systemAttachmentLst', |
|
|
|
'_path' =>'/setting/systemAdmin', |
|
|
|
'_path' => '/setting/systemAdmin', |
|
|
|
'_alias' => '图片列表', |
|
|
|
'_alias' => '图片列表', |
|
|
|
'_auth' => true, |
|
|
|
'_auth' => true, |
|
|
|
], |
|
|
|
], |
|
|
|
] |
|
|
|
] |
|
|
|
]); |
|
|
|
]); |
|
|
@ -135,10 +135,10 @@ Route::group(function () { |
|
|
|
'_auth' => true, |
|
|
|
'_auth' => true, |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
//合伙人角色 |
|
|
|
|
|
|
|
Route::group('partner/role', function () { |
|
|
|
Route::group('partner/role', function () { |
|
|
|
Route::get('list', '.Partner/list')->name('systemPartnerList')->option([ |
|
|
|
Route::get('list', '.Partner/list')->name('systemPartnerList')->option([ |
|
|
|
'_alias' => '合作人角色列表', |
|
|
|
'_alias' => '合作人角色列表', |
|
|
|
|
|
|
|
'_auth' => false, |
|
|
|
]); |
|
|
|
]); |
|
|
|
Route::post('add', '.Partner/add')->name('systemPartnerAdd')->option([ |
|
|
|
Route::post('add', '.Partner/add')->name('systemPartnerAdd')->option([ |
|
|
|
'_alias' => '添加合作人角色', |
|
|
|
'_alias' => '添加合作人角色', |
|
|
@ -156,13 +156,12 @@ Route::group(function () { |
|
|
|
'_alias' => '读取合作人大区', |
|
|
|
'_alias' => '读取合作人大区', |
|
|
|
]); |
|
|
|
]); |
|
|
|
})->prefix('admin.system.admin')->option([ |
|
|
|
})->prefix('admin.system.admin')->option([ |
|
|
|
'_path' => 'self', |
|
|
|
'_auth' => false, |
|
|
|
'_auth' => true, |
|
|
|
|
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})->middleware(AllowOriginMiddleware::class) |
|
|
|
})->middleware(AllowOriginMiddleware::class) |
|
|
|
->middleware(AdminTokenMiddleware::class, true) |
|
|
|
->middleware(AdminTokenMiddleware::class, true) |
|
|
|
->middleware(AdminAuthMiddleware::class) |
|
|
|
->middleware(AdminAuthMiddleware::class) |
|
|
|
->middleware(LogMiddleware::class); |
|
|
|
->middleware(LogMiddleware::class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|