role.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  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('role', function () {
  14. //@角色列表
  15. Route::rule('list', 'role/list');
  16. //@修改角色
  17. Route::post('save','role/save');
  18. //@删除角色
  19. Route::post('del','role/del');
  20. //@权利配置
  21. Route::rule('setingList','role/setingList');
  22. //@角色权限
  23. Route::rule('setingSave','role/setingSave');
  24. })->middleware([
  25. \app\system\middleware\AllowOriginMiddleware::class,
  26. \app\system\middleware\AdminAuthTokenMiddleware::class,
  27. \app\system\middleware\AdminCkeckRoleMiddleware::class
  28. ]);