// +---------------------------------------------------------------------- use think\facade\Route; use app\common\middleware\AdminAuthMiddleware; use app\common\middleware\AdminTokenMiddleware; use app\common\middleware\AllowOriginMiddleware; use app\common\middleware\LogMiddleware; Route::group(function () { //积分价格 Route::group('system/award/price', function () { // Route::get('create/form', '/createForm')->name('OilLevelCreateForm')->option([ // '_alias' => '文章分类添加表单', // '_auth' => false, // '_form' => 'OilLevelCreate', // ]); Route::get('hand/send', '/hand_send')->name('systemHandSend')->option([ '_alias' => '手动分红', ]); Route::get('lst', '/lst')->name('systemAwardPriceLst')->option([ '_alias' => '积分价格列表', ]); Route::get('lake/lst', '/lake_lst')->name('systemAwardLakeLst')->option([ '_alias' => '奖池列表', ]); Route::get('lake/log_lst', '/lake_log_lst')->name('systemAwardLakeLogLst')->option([ '_alias' => '奖池变更列表', ]); Route::get('oil/lst', '/oil_lst')->name('systemAwardOilLst')->option([ '_alias' => '节能油等级列表', ]); Route::post('oil/create', '/oil_create')->name('systemAwardOilCreate')->option([ '_alias' => '节能油等级添加', ]); Route::post('oil/update/:id', '/oil_update')->name('systemAwardOilUpdate')->option([ '_alias' => '节能油等级编辑', ]); Route::delete('oil/delete/:id', '/oil_delete')->name('systemAwardOilDelete')->option([ '_alias' => '节能油等级删除', ]); Route::get('gift/lst', '/gift_lst')->name('systemAwardgiftLst')->option([ '_alias' => '礼包等级列表', ]); Route::post('gift/create', '/gift_create')->name('systemAwardgiftCreate')->option([ '_alias' => '礼包等级添加', ]); Route::post('gift/update/:id', '/gift_update')->name('systemAwardgiftUpdate')->option([ '_alias' => '礼包等级编辑', ]); Route::delete('gift/delete/:id', '/gift_delete')->name('systemAwardgiftDelete')->option([ '_alias' => '礼包等级删除', ]); })->prefix('admin.user.award')->option([ '_path' => '/award/price', '_auth' => true, ]); // Route::group('system/award/oil_level', function () { // Route::get('create/form', '/createForm')->name('OilLevelCreateForm')->option([ // '_alias' => '添加节能油等级', // '_auth' => false, // '_form' => 'OilLevelCreate', // ]); // Route::get('lst', '/lst')->name('OilLevelLst')->option([ // '_alias' => '节能油等级列表', // ]); // Route::post('create', '/create')->name('OilLevelCreate')->option([ // '_alias' => '节能油等级添加', // ]); //// Route::get('update/form/:id', '/updateForm')->name('OilLevelUpdateForm')->option([ //// '_alias' => '文章分类编辑表单', //// '_auth' => false, //// '_form' => 'OilLevelUpdate', //// ]); // Route::post('update/:id', '/update')->name('OilLevelUpdate')->option([ // '_alias' => '节能油等级编辑', // ]); //// Route::post('status/:id', '/switchStatus')->name('OilLevelStatus')->option([ //// '_alias' => '文章分类修改状态', //// ]); // Route::delete('delete/:id', '/delete')->name('OilLevelDelete')->option([ // '_alias' => '节能油等级删除', // ]); // Route::get('detail/:id', '/detail')->name('OilLevelDetail')->option([ // '_alias' => '节能油等级详情', // ]); //// Route::get('select', '/select')->option([ //// '_alias' => '文章分类筛选', //// '_auth' => false, //// ]); // })->prefix('admin.user.OilLevel')->option([ // '_path' => '/award/oillevel', // '_auth' => true, // ]); })->middleware(AllowOriginMiddleware::class) ->middleware(AdminTokenMiddleware::class, true) ->middleware(AdminAuthMiddleware::class) ->middleware(LogMiddleware::class);