AuthController.php 327 B

12345678910111213141516171819
  1. <?php
  2. namespace platform\controllers;
  3. use biz\auth\services\AuthService;
  4. use Yii;
  5. class AuthController extends BaseController
  6. {
  7. //获取权限树 shish 2019.11.24
  8. public function actionTree()
  9. {
  10. $get = Yii::$app->request->get();
  11. $endId = isset($get['endId']) ? $get['endId'] : 1;
  12. AuthService::getTree($endId);
  13. }
  14. }