sysmenu.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // |
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-08-30 14:41
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. //@菜单栏目
  13. Route::group('sysmenu', function () {
  14. //@列表
  15. Route::rule('list', 'sysMenu/list');
  16. //@树结构列表
  17. Route::rule('tree','sysMenu/treeList');
  18. //@设置菜单显示/隐藏
  19. Route::post('status','sysMenu/status');
  20. //@获取详情信息
  21. Route::rule('info','sysMenu/info');
  22. //@保存设置
  23. Route::rule('save','sysMenu/save');
  24. //@删除
  25. Route::rule('del','sysMenu/del');
  26. })->middleware([
  27. \app\system\middleware\AllowOriginMiddleware::class,
  28. \app\system\middleware\AdminAuthTokenMiddleware::class,
  29. \app\system\middleware\AdminCkeckRoleMiddleware::class
  30. ]);