|
|
@ -15,8 +15,8 @@ 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([ |
|
|
@ -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); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|