Commit c87c38e2 authored by 符运喃's avatar 符运喃

Merge branch 'feature-auth-data-v1' into test

parents 056f89f2 51d2ca3f
......@@ -76,6 +76,15 @@ interface UserServiceInterface
*/
public function checkPerm(int $userId, string $perm): bool;
/**
* 获取当前数据权限的配置
* @example store_warehouse_index(store_模块的名称,warehouse_ 控制器 index 方法)
* @param string $dataPerm
* @return array
*/
public function checkDataPerm(string $dataPerm): array;
/**
* 获取用户拥有某个应用的所有权限
* @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