| 123456789101112131415161718192021 |
- <?php
- namespace platform\controllers;
- use biz\auth\services\AuthService;
- use common\components\util;
- use Yii;
- class AuthController extends BaseController
- {
-
- //获取权限树 shish 2019.11.24
- public function actionTree()
- {
- $get = Yii::$app->request->get();
- $endId = isset($get['endId']) ? $get['endId'] : 1;
- $tree = AuthService::getTree($endId);
- util::success($tree);
- }
-
- }
|