Commit 90b900d7 authored by 王源's avatar 王源 🎧

添加获取鉴权的岗位

parent 25f789db
......@@ -38,4 +38,13 @@ interface AccessServiceInterface
*/
public function getDepartments($userId, $tree = false, $withUser = false);
/**
* 获取鉴权的岗位
* @param $userId
* @param bool $tree 是否返回树状结构
* @param bool $withUser
* @return array 已进行keyBy('id')处理,返回树状结构时,keyBy无效
*/
public function getPositions($userId, $tree = false, $withUser = false);
}
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