权限调整

main
limu 11 months ago
parent 6c0a79dd40
commit 9d55f0f73d
  1. 25
      route/admin/role.php

@ -15,9 +15,9 @@ use app\common\middleware\AdminTokenMiddleware;
use app\common\middleware\AllowOriginMiddleware;
use app\common\middleware\LogMiddleware;
Route::group(function () {
//身份规则
Route::group(function () {
//身份规则
Route::group('system/role', function () {
Route::get('lst', '/getList')->name('systemRoleGetList')->option([
'_alias' => '身份列表',
@ -49,7 +49,7 @@ Route::group(function () {
'_auth' => true,
]);
//Admin管理
//Admin管理
Route::group('system/admin', function () {
Route::get('lst', '.Admin/getList')->name('systemAdminLst')->option([
'_alias' => '管理员列表',
@ -97,16 +97,16 @@ Route::group(function () {
})->prefix('admin.system.admin')->option([
'_path' => '/setting/systemAdmin',
'_auth' => true,
'_append'=> [
'_append' => [
[
'_name' =>'uploadImage',
'_path' =>'/setting/systemAdmin',
'_name' => 'uploadImage',
'_path' => '/setting/systemAdmin',
'_alias' => '上传图片',
'_auth' => true,
],
[
'_name' =>'systemAttachmentLst',
'_path' =>'/setting/systemAdmin',
'_name' => 'systemAttachmentLst',
'_path' => '/setting/systemAdmin',
'_alias' => '图片列表',
'_auth' => true,
],
@ -135,10 +135,10 @@ Route::group(function () {
'_auth' => true,
]);
//合伙人角色
Route::group('partner/role', function () {
Route::get('list', '.Partner/list')->name('systemPartnerList')->option([
'_alias' => '合作人角色列表',
'_auth' => false,
]);
Route::post('add', '.Partner/add')->name('systemPartnerAdd')->option([
'_alias' => '添加合作人角色',
@ -156,13 +156,12 @@ Route::group(function () {
'_alias' => '读取合作人大区',
]);
})->prefix('admin.system.admin')->option([
'_path' => 'self',
'_auth' => true,
'_auth' => false,
]);
})->middleware(AllowOriginMiddleware::class)
->middleware(AdminTokenMiddleware::class, true)
->middleware(AdminAuthMiddleware::class)
->middleware(LogMiddleware::class);

Loading…
Cancel
Save