award.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. use app\common\middleware\AdminAuthMiddleware;
  13. use app\common\middleware\AdminTokenMiddleware;
  14. use app\common\middleware\AllowOriginMiddleware;
  15. use app\common\middleware\LogMiddleware;
  16. Route::group(function () {
  17. //积分价格
  18. Route::group('system/award/price', function () {
  19. // Route::get('create/form', '/createForm')->name('OilLevelCreateForm')->option([
  20. // '_alias' => '文章分类添加表单',
  21. // '_auth' => false,
  22. // '_form' => 'OilLevelCreate',
  23. // ]);
  24. Route::get('lst', '/lst')->name('systemAwardPriceLst')->option([
  25. '_alias' => '积分价格列表',
  26. ]);
  27. Route::get('lake/lst', '/lake_lst')->name('systemAwardPriceLst')->option([
  28. '_alias' => '奖池列表',
  29. ]);
  30. Route::get('oil/lst', '/oil_lst')->name('systemAwardOilLst')->option([
  31. '_alias' => '节能油等级列表',
  32. ]);
  33. Route::post('oil/create', '/oil_create')->name('systemAwardOilCreate')->option([
  34. '_alias' => '节能油等级添加',
  35. ]);
  36. Route::post('oil/update/:id', '/oil_update')->name('systemAwardOilUpdate')->option([
  37. '_alias' => '节能油等级编辑',
  38. ]);
  39. Route::delete('oil/delete/:id', '/oil_delete')->name('systemAwardOilDelete')->option([
  40. '_alias' => '节能油等级删除',
  41. ]);
  42. Route::get('oil/detail/:id', '/oil_detail')->name('systemAwardOilDetail')->option([
  43. '_alias' => '节能油等级详情',
  44. ]);
  45. })->prefix('admin.user.award')->option([
  46. '_path' => '/award/price',
  47. '_auth' => true,
  48. ]);
  49. // Route::group('system/award/oil_level', function () {
  50. // Route::get('create/form', '/createForm')->name('OilLevelCreateForm')->option([
  51. // '_alias' => '添加节能油等级',
  52. // '_auth' => false,
  53. // '_form' => 'OilLevelCreate',
  54. // ]);
  55. // Route::get('lst', '/lst')->name('OilLevelLst')->option([
  56. // '_alias' => '节能油等级列表',
  57. // ]);
  58. // Route::post('create', '/create')->name('OilLevelCreate')->option([
  59. // '_alias' => '节能油等级添加',
  60. // ]);
  61. //// Route::get('update/form/:id', '/updateForm')->name('OilLevelUpdateForm')->option([
  62. //// '_alias' => '文章分类编辑表单',
  63. //// '_auth' => false,
  64. //// '_form' => 'OilLevelUpdate',
  65. //// ]);
  66. // Route::post('update/:id', '/update')->name('OilLevelUpdate')->option([
  67. // '_alias' => '节能油等级编辑',
  68. // ]);
  69. //// Route::post('status/:id', '/switchStatus')->name('OilLevelStatus')->option([
  70. //// '_alias' => '文章分类修改状态',
  71. //// ]);
  72. // Route::delete('delete/:id', '/delete')->name('OilLevelDelete')->option([
  73. // '_alias' => '节能油等级删除',
  74. // ]);
  75. // Route::get('detail/:id', '/detail')->name('OilLevelDetail')->option([
  76. // '_alias' => '节能油等级详情',
  77. // ]);
  78. //// Route::get('select', '/select')->option([
  79. //// '_alias' => '文章分类筛选',
  80. //// '_auth' => false,
  81. //// ]);
  82. // })->prefix('admin.user.OilLevel')->option([
  83. // '_path' => '/award/oillevel',
  84. // '_auth' => true,
  85. // ]);
  86. })->middleware(AllowOriginMiddleware::class)
  87. ->middleware(AdminTokenMiddleware::class, true)
  88. ->middleware(AdminAuthMiddleware::class)
  89. ->middleware(LogMiddleware::class);