Commit ab4574f9 authored by 王源's avatar 王源 🎧

用户服务接口添加获取权限数组方法

parent 4a2d712e
......@@ -27,10 +27,19 @@ interface UserServiceInterface
public function getByIdList(array $idList, array $columns = ['*']);
/**
* 鉴权
* @param int $userId
* @param string $perm
* @return bool
*/
public function checkPerm(int $userId, string $perm): bool;
/**
* 获取用户拥有某个应用的所有权限
* @param int $userId
* @param string $appName 为空获取全部权限
* @return array
*/
public function getPerms(int $userId, string $appName = null): array;
}
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