新增权限功能

This commit is contained in:
mzl
2025-07-11 14:52:16 +08:00
parent 3a72f8ec0a
commit 92eff91747
18 changed files with 463 additions and 244 deletions
-3
View File
@@ -30,13 +30,10 @@ class PermService
if ($cached !== null) {
return $cached;
}
// 调用 Logic 层获取资源
$resources = $this->logic->getUserResources($userId);
// 缓存结果
Cache::set($cacheKey, $resources, 3600);
return $resources;
}