adver.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // |
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-09-06 21:52
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. //@广告栏目
  13. Route::group('adver', function () {
  14. //@获取广告栏目
  15. Route::rule('page', 'adver/page');
  16. //@获取广告分类tree
  17. Route::post('page_tree','adver/page_tree');
  18. //@删除广告分类
  19. Route::post('page_del','adver/page_del');
  20. //@修改广告分类数据
  21. Route::post('page_save','adver/page_save');
  22. //@广告分类详情
  23. Route::post('page_info','adver/page_info');
  24. //@广告列表
  25. Route::post('list','adver/list');
  26. //@删除广告
  27. Route::post('del','adver/del');
  28. //@修改广告数据
  29. Route::post('save','adver/save');
  30. //@广告详情
  31. Route::post('info','adver/info');
  32. //@资源图片列表
  33. Route::post('upsourceList','adver/upsourceList');
  34. //@删除资源图片
  35. Route::post('upsourceDel','adver/upsourceDel');
  36. //@编辑资源图片
  37. Route::post('upsourceSave','adver/upsourceSave');
  38. })->middleware([
  39. \app\system\middleware\AllowOriginMiddleware::class,
  40. \app\system\middleware\AdminAuthTokenMiddleware::class,
  41. \app\system\middleware\AdminCkeckRoleMiddleware::class
  42. ]);