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

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

parents 056f89f2 51d2ca3f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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