diff --git a/.changes/Migration 10.0.2 - 10.2.0.md b/.changes/Migration 10.0.2 - 10.2.0.md new file mode 100644 index 000000000..ee0176bd8 --- /dev/null +++ b/.changes/Migration 10.0.2 - 10.2.0.md @@ -0,0 +1,106 @@ +# 10.0.2 - 10.2.0 + +## 模块变更 + +1. [权限管理模块] abp官方新增 [ConfigurationFeatureValueProvider](https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Features/Volo/Abp/Features/ConfigurationFeatureValueProvider.cs), 此提供者使用简称为 `C` 的功能提供者, 与本项目中客户端功能提供者 `ClientFeatureValueProvider` 重名, 因此 `ClientFeatureValueProvider`简称将变更为 `CT` + + > *需要手动执行数据库语句以适配此变更:* + ```postgresql + update "AbpFeatureValues" afv set "ProviderName" = 'CT' where afv."ProviderName" = 'C' + ``` + +2. [权限管理模块] 增加 [资源权限](https://github.com/abpframework/abp/tree/dev/framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Permissions/Resources) 自定义接口. + +3. [缓存管理模块] 增加批量删除缓存功能. + +4. [缓存管理模块] 修复模糊查询时数据为空问题. + +5. [缓存管理模块] 增加缓存管理页面. + +6. [多语言管理模块] 修复动态本地化 + +7. [权限管理模块] 增加组织机构资源权限提供者 `OrganizationUnitResourcePermissionValueProvider` + +8. [对象存储模块] 重构领域层, 增加持久化层, 存储对象引用、私有文件访问权限, 实现层通过对象引用访问Oss + +9. [单体应用服务] 重构数据种子, 解决部分与abp框架冲突种子数据, 造成新租户事件执行失败 + +10. [Elsa工作量模块] 由于Elsa2.x版本依赖Swashbuckle 6.x版本, 而abp依赖10.x版本, 暂时在Swagger配置中移除Elsa相关接口 + +11. [EFCoreMySql] 由于 `Pomelo.EntityFrameworkCore.MySql` 太长时间未适配.NET 10, 使用 `Microting.EntityFrameworkCore.MySql` 替换, 详情见: https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/2007 + +12. [单体应用服务] 新增缺失的MySql数据库迁移脚本, 由于MySql InnoDB 引擎对索引有长度限制, abp 资源权限索引需要限制长度, 暂时移除资源名称加入索引中 + +13. [解决方案变更] 解决方案文件从 `sln` 格式变更为 `slnx` 格式 + +14. [数据导出模块] 增加 `IExcelExporterProvider`、`IExcelImporterProvider`、`IWordExporterProvider` 接口, 原 `IExporterProvider`、`IImporterProvider` 标记为弃用 + +15. [数据导出模块] 增加 `AbpExporterMiniSoftwareModule` 模块, 集成 `MiniExcel`、`MiniWord` 实现 `IExcelExporterProvider`、`IExcelImporterProvider`、`IWordExporterProvider` 接口 + +16. [解决方案优化] 合并Task、Webhook、Wechat、Workflow解决方案到All中,移除多余的解决方案文件 + +## 依赖项变更 + +| 库名称 | 原版本 | 现版本 | +| -------------------------------------------- | --------- | ------ | +| Volo.Abp.* | 10.0.2 | 10.2.0 | +| Elsa2 | 2.16.0 | 2.16.1 | +| Elsa3 | 3.3.5 | 3.6.0 | +| Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite | 5.0.2 | 5.2.0 | +| Microsoft.Bcl.AsyncInterfaces | 10.0.0 | 10.0.2 | +| MySql.EntityFrameworkCore | 10.0.0-rc | 10.0.1 | +| Microting.EntityFrameworkCore.MySql | | 10.0.3 | +| Serilog.Extensions.Logging | 9.0.1 | 9.0.2 | +| DocumentFormat.OpenXml | | 3.5.1 | +| MiniExcel | 1.42.0 | 1.43.0 | +| MiniWord | | 0.9.2 | +| Scriban | 6.3.0 | 7.0.0 | +| Swashbuckle.AspNetCore | 9.0.4 | 10.0.1 | + + + +## 数据库迁移 + +| Project Name | Database Provider | Scripts | EF Core Version | +| ------------------------ | ----------------- | ---------------------------------------------- | --------------- | +| aspire/AdminService | PostgreSQL | 20260403034826_Upgrade-Abp-Framework-To-10-2-0 | 10.0.2 | +| aspire/AuthServer | PostgreSQL | 20260402040021_Upgrade-Abp-Framework-To-10-2-0 | 10.0.2 | +| aspire/PlatformService | PostgreSQL | 20260411023117_Add-Blob-Management-Module | 10.0.2 | +| services/Single | MySQL | 20260421022905_Upgrade-Abp-Framework-To-10-2-0 | 10.0.3 | +| services/Single | PostgreSQL | 20260403035350_Upgrade-Abp-Framework-To-10-2-0 | 10.0.2 | +| services/Single | PostgreSQL | 20260421023019_Add-Blob-Management-Module | 10.0.2 | +| services/Single | SqlServer | 20260403035440_Upgrade-Abp-Framework-To-10-2-0 | 10.0.2 | +| services/Single | SqlServer | 20260421023044_Add-Blob-Management-Module | 10.0.2 | +| services/AuthServer | MySQL | 20260420064613_Upgrade-Abp-Framework-To-10-0-2 | 10.0.3 | +| services/BackendAdmin | MySQL | 20260420064540_Upgrade-Abp-Framework-To-10-0-2 | 10.0.3 | +| services/Platform | MySQL | 20260424033808_Add-Blob-Management-Module | 10.0.3 | +| services/IdentityServer | MySQL | 20260420065028_Upgrade-Abp-Framework-To-10-0-2 | 10.0.3 | +| services/RealtimeMessage | MySQL | 20260420065252_Upgrade-Abp-Framework-To-10-0-2 | 10.0.3 | +| services/TaskManagement | MySQL | 20260420073543_Upgrade-Abp-Framework-To-10-0-2 | 10.0.3 | + + +## 数据库连接字符串 + +| Module Name | ConnectionString Name | Example(MySQL) | +| ----------------------------- | ---------------------------- | ------------------------------------------------------------ | +| Default | Default | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| abp/Identity | AbpIdentity | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| abp/IdentityServer | AbpIdentityServer | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| abp/OpenIddict | AbpOpenIddict | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| abp/TenantManagement | AbpTenantManagement(AbpSaas) | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| abp/FeatureManagement | AbpFeatureManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| abp/SettingManagement | AbpSettingManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| abp/PermissionManagement | AbpPermissionManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/AIManagement | AbpAIManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/BlobManagement | AbpBlobManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/DataProtectionManagement | AbpDataProtectionManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/Gdpr | AbpGdpr | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/Saas | AbpSaas | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/LocalizationManagement | AbpLocalizationManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/TextTemplating | AbpTextTemplating | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/Platform | AppPlatform | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/MessageService | MessageService | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/NotificationService | Notifications | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/TaskManagement | TaskManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/WebhooksManagement | WebhooksManagement | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | +| labp/Elsa | Workflow | Server=127.0.0.1;Database=abp;User Id=root;Password=123456;SslMode=None | diff --git a/Directory.Packages.props b/Directory.Packages.props index 7a4bd2817..b9d54b3e0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,19 +1,19 @@ 10.0.0 - 2.16.0 - 3.3.5 - 10.0.2 - 10.0.2 - 10.0.0 - 10.0.0 - 10.0.0 + 2.16.1 + 3.6.0 + 10.2.0 + 10.2.0 + 10.0.2 + 10.0.2 + 10.0.2 13.1.0 true - + @@ -164,7 +164,7 @@ - + @@ -183,9 +183,10 @@ - + + @@ -234,6 +235,10 @@ + + + + @@ -261,7 +266,7 @@ - + @@ -330,6 +335,7 @@ + @@ -344,7 +350,8 @@ - + + @@ -360,7 +367,7 @@ - + @@ -369,7 +376,7 @@ - + diff --git a/apps/vben5/apps/app-antd/.env.development b/apps/vben5/apps/app-antd/.env.development index b638cd47c..ef5b909eb 100644 --- a/apps/vben5/apps/app-antd/.env.development +++ b/apps/vben5/apps/app-antd/.env.development @@ -16,12 +16,19 @@ VITE_DEVTOOLS=false VITE_INJECT_APP_LOADING=true # 是否仅允许OIDC登录 -VITE_GLOB_AUTH_ONLY_OIDC=false +VITE_GLOB_AUTH_ONLY_OIDC=true # 认证服务器 -VITE_GLOB_AUTH_AUTHORITY="http://localhost:44385" +VITE_GLOB_AUTH_AUTHORITY="http://localhost:30000" # 授权范围 VITE_GLOB_AUTH_AUDIENCE="openid email address phone profile offline_access lingyun-abp-application" # 客户端Id VITE_GLOB_AUTH_CLIENT_ID=vue-admin-client # 客户端密钥【生产环境请勿设置此值,建议启用仅允许OIDC登录,将使用授权码类型登录】 VITE_GLOB_AUTH_CLIENT_SECRET=1q2w3e* +# 可选值: login、consent、select_account +# 取消注释登录时在多租户选择账户 +# VITE_GLOB_AUTH_PROMPT=select_account +# 取消注释登录时强制用户在该请求上输入凭据,使单一登录无效 +# VITE_GLOB_AUTH_PROMPT=login +# 取消注释登录时始终要求用户授权 +# VITE_GLOB_AUTH_PROMPT=consent diff --git a/apps/vben5/apps/app-antd/package.json b/apps/vben5/apps/app-antd/package.json index 3fb801bb5..8fe700c52 100644 --- a/apps/vben5/apps/app-antd/package.json +++ b/apps/vben5/apps/app-antd/package.json @@ -29,6 +29,8 @@ "@abp/account": "workspace:*", "@abp/ai-management": "workspace:*", "@abp/auditing": "workspace:*", + "@abp/blob-management": "workspace:*", + "@abp/cache-management": "workspace:*", "@abp/components": "workspace:*", "@abp/core": "workspace:*", "@abp/data-protection": "workspace:*", @@ -38,7 +40,6 @@ "@abp/localization": "workspace:*", "@abp/notifications": "workspace:*", "@abp/openiddict": "workspace:*", - "@abp/oss": "workspace:*", "@abp/permissions": "workspace:*", "@abp/platform": "workspace:*", "@abp/request": "workspace:*", diff --git a/apps/vben5/apps/app-antd/src/layouts/basic.vue b/apps/vben5/apps/app-antd/src/layouts/basic.vue index a9059508d..c2682b198 100644 --- a/apps/vben5/apps/app-antd/src/layouts/basic.vue +++ b/apps/vben5/apps/app-antd/src/layouts/basic.vue @@ -95,14 +95,19 @@ watch(