award.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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('hand/send', '/hand_send')->name('systemHandSend')->option([
  25. '_alias' => '手动分红',
  26. ]);
  27. Route::get('lst', '/lst')->name('systemAwardPriceLst')->option([
  28. '_alias' => '积分价格列表',
  29. ]);
  30. Route::get('lake/lst', '/lake_lst')->name('systemAwardLakeLst')->option([
  31. '_alias' => '奖池列表',
  32. ]);
  33. Route::get('lake/log_lst', '/lake_log_lst')->name('systemAwardLakeLogLst')->option([
  34. '_alias' => '奖池变更列表',
  35. ]);
  36. Route::get('oil/lst', '/oil_lst')->name('systemAwardOilLst')->option([
  37. '_alias' => '节能油等级列表',
  38. ]);
  39. Route::post('oil/create', '/oil_create')->name('systemAwardOilCreate')->option([
  40. '_alias' => '节能油等级添加',
  41. ]);
  42. Route::post('oil/update/:id', '/oil_update')->name('systemAwardOilUpdate')->option([
  43. '_alias' => '节能油等级编辑',
  44. ]);
  45. Route::delete('oil/delete/:id', '/oil_delete')->name('systemAwardOilDelete')->option([
  46. '_alias' => '节能油等级删除',
  47. ]);
  48. Route::get('gift/lst', '/gift_lst')->name('systemAwardgiftLst')->option([
  49. '_alias' => '礼包等级列表',
  50. ]);
  51. Route::post('gift/create', '/gift_create')->name('systemAwardgiftCreate')->option([
  52. '_alias' => '礼包等级添加',
  53. ]);
  54. Route::post('gift/update/:id', '/gift_update')->name('systemAwardgiftUpdate')->option([
  55. '_alias' => '礼包等级编辑',
  56. ]);
  57. Route::delete('gift/delete/:id', '/gift_delete')->name('systemAwardgiftDelete')->option([
  58. '_alias' => '礼包等级删除',
  59. ]);
  60. })->prefix('admin.user.award')->option([
  61. '_path' => '/award/price',
  62. '_auth' => true,
  63. ]);
  64. // Route::group('system/award/oil_level', function () {
  65. // Route::get('create/form', '/createForm')->name('OilLevelCreateForm')->option([
  66. // '_alias' => '添加节能油等级',
  67. // '_auth' => false,
  68. // '_form' => 'OilLevelCreate',
  69. // ]);
  70. // Route::get('lst', '/lst')->name('OilLevelLst')->option([
  71. // '_alias' => '节能油等级列表',
  72. // ]);
  73. // Route::post('create', '/create')->name('OilLevelCreate')->option([
  74. // '_alias' => '节能油等级添加',
  75. // ]);
  76. //// Route::get('update/form/:id', '/updateForm')->name('OilLevelUpdateForm')->option([
  77. //// '_alias' => '文章分类编辑表单',
  78. //// '_auth' => false,
  79. //// '_form' => 'OilLevelUpdate',
  80. //// ]);
  81. // Route::post('update/:id', '/update')->name('OilLevelUpdate')->option([
  82. // '_alias' => '节能油等级编辑',
  83. // ]);
  84. //// Route::post('status/:id', '/switchStatus')->name('OilLevelStatus')->option([
  85. //// '_alias' => '文章分类修改状态',
  86. //// ]);
  87. // Route::delete('delete/:id', '/delete')->name('OilLevelDelete')->option([
  88. // '_alias' => '节能油等级删除',
  89. // ]);
  90. // Route::get('detail/:id', '/detail')->name('OilLevelDetail')->option([
  91. // '_alias' => '节能油等级详情',
  92. // ]);
  93. //// Route::get('select', '/select')->option([
  94. //// '_alias' => '文章分类筛选',
  95. //// '_auth' => false,
  96. //// ]);
  97. // })->prefix('admin.user.OilLevel')->option([
  98. // '_path' => '/award/oillevel',
  99. // '_auth' => true,
  100. // ]);
  101. })->middleware(AllowOriginMiddleware::class)
  102. ->middleware(AdminTokenMiddleware::class, true)
  103. ->middleware(AdminAuthMiddleware::class)
  104. ->middleware(LogMiddleware::class);