PermissionController.php 387 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace ghs\controllers;
  3. use bizHd\auth\services\AuthService;
  4. use common\components\util;
  5. use Yii;
  6. /**
  7. * 权限
  8. */
  9. class PermissionController extends PublicController
  10. {
  11. //权限树 ssh 2020.1.23
  12. public function actionTree()
  13. {
  14. $endId = Yii::$app->request->get('id', 1);
  15. $tree = AuthService::getTree($endId);
  16. util::success($tree);
  17. }
  18. }