Commit 7a8ce010 authored by 王源's avatar 王源 🎧

用户rpc添加判断是否超级管理员方法,应用rpc修改获取权限应用方法

parent 94b2d913
......@@ -14,7 +14,8 @@ interface AppServiceInterface
/**
* 获取当前用户可访问的应用数组
* @param $user
* @param bool $isSuperAdmin 是否是超级管理员
* @return mixed
*/
public function getAccessApps($user);
public function getAccessApps($user, $isSuperAdmin = false);
}
......@@ -45,6 +45,13 @@ interface UserServiceInterface
*/
public function getByIdList(array $idList, array $columns = ['*'], array $relations = []);
/**
* 判断是否是超级管理员
* @param int $userId
* @return bool
*/
public function isSuperAdmin(int $userId): bool;
/**
* 鉴权
* @param int $userId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment