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

添加获取用户所有角色数据RPC方法

parent 6e8ebe38
...@@ -79,9 +79,9 @@ interface UserServiceInterface ...@@ -79,9 +79,9 @@ interface UserServiceInterface
/** /**
* 获取当前数据权限的配置 * 获取当前数据权限的配置
* @example store_warehouse_index(store_模块的名称,warehouse_ 控制器 index 方法)
* @param string $dataPerm * @param string $dataPerm
* @return array * @return array
* @example store_warehouse_index(store_模块的名称,warehouse_ 控制器 index 方法)
*/ */
public function checkDataPerm(string $dataPerm): array; public function checkDataPerm(string $dataPerm): array;
...@@ -148,4 +148,12 @@ interface UserServiceInterface ...@@ -148,4 +148,12 @@ interface UserServiceInterface
*/ */
public function belongToDepartments($userId, $deptId, $withChildren = false): bool; public function belongToDepartments($userId, $deptId, $withChildren = false): bool;
/**
* 获取用户所有角色数据
* @param $userId
* @return array
* @author Zero
*/
public function getRoles($userId): 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