| 1234567891011121314151617181920212223 |
- <?php
- namespace hd\controllers;
- use bizHd\auth\services\AuthService;
- use common\components\util;
- use Yii;
- /**
- * 权限
- */
- class PermissionController extends PublicController
- {
- //权限树 ssh 2020.1.23
- public function actionTree()
- {
- $endId = Yii::$app->request->get('id', 1);
- $tree = AuthService::getTree($endId);
- util::success($tree);
- }
- }
|