1. 新增在线协同文档功能 v 1

This commit is contained in:
chenbowen
2025-09-01 10:01:35 +08:00
parent 827ab022ed
commit 1ed31a4f49
43 changed files with 2734 additions and 3 deletions

View File

@@ -26,6 +26,11 @@ public class PermissionApiImpl implements PermissionApi {
return success(permissionService.getUserRoleIdListByRoleId(roleIds));
}
@Override
public CommonResult<Set<Long>> getUserRoleIdListByUserId(Long userId) {
return success(permissionService.getUserRoleIdListByUserIdFromCache(userId));
}
@Override
public CommonResult<Boolean> hasAnyPermissions(Long userId, String... permissions) {
return success(permissionService.hasAnyPermissions(userId, permissions));

View File

@@ -22,4 +22,9 @@ public class RoleApiImpl implements RoleApi {
roleService.validateRoleList(ids);
return success(true);
}
@Override
public CommonResult<Boolean> hasAnySuperAdmin(Collection<Long> roleIds) {
return success(roleService.hasAnySuperAdmin(roleIds));
}
}