|
|
@@ -12,7 +12,7 @@ class AuthService extends BaseService
|
|
|
public static $baseFile = '\biz\auth\classes\AuthClass';
|
|
|
|
|
|
//获取指定业务端的权限列表 shish 2019.11.24
|
|
|
- public static function getList($endId)
|
|
|
+ public static function getAuthList($endId)
|
|
|
{
|
|
|
return self::getAllByCondition(['endId' => $endId], null, '*');
|
|
|
}
|
|
|
@@ -20,7 +20,7 @@ class AuthService extends BaseService
|
|
|
//某业务端的权限id shish 2019.11.25
|
|
|
public static function getListId($endId)
|
|
|
{
|
|
|
- $list = self::getList($endId);
|
|
|
+ $list = self::getAuthList($endId);
|
|
|
$ids = empty($list) ? [] : array_column($list,'id');
|
|
|
return $ids;
|
|
|
}
|
|
|
@@ -28,7 +28,7 @@ class AuthService extends BaseService
|
|
|
//获取指定业务端的权限树
|
|
|
public static function getTree($endId)
|
|
|
{
|
|
|
- $data = self::getList($endId);
|
|
|
+ $data = self::getAuthList($endId);
|
|
|
$tree = tree::makeTree($data, ['primary_key' => 'id', 'parent_key' => 'parentId', 'children_key' => 'children',]);
|
|
|
return $tree;
|
|
|
}
|
|
|
@@ -36,7 +36,7 @@ class AuthService extends BaseService
|
|
|
//获取业务端所有权限名称 shish 2019.11.24
|
|
|
public static function getNameList($endId)
|
|
|
{
|
|
|
- $list = self::getList($endId);
|
|
|
+ $list = self::getAuthList($endId);
|
|
|
$arr = !empty($list) ? array_column($list, 'authName') : [];
|
|
|
return $arr;
|
|
|
}
|