From 44b13acc612c88057d90aeace77244c72a170afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Tue, 6 Feb 2024 15:25:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97=E6=90=AD=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Abp.Net8/Yi.Abp.sln | 18 ++++- .../Dtos/TenantCreateInput.cs | 12 +++ .../Dtos/TenantGetListInput.cs | 12 +++ .../Dtos/TenantGetListOutputDto.cs | 13 ++++ .../Dtos/TenantGetOutputDto.cs | 13 ++++ .../Dtos/TenantUpdateInput.cs | 12 +++ .../ITenantService.cs | 9 +++ ...antManagement.Application.Contracts.csproj | 15 ++++ ...antManagementApplicationContractsModule.cs | 13 ++++ .../TenantService.cs | 78 +++++++++++++++++++ ...mework.TenantManagement.Application.csproj | 15 ++++ ...meworkTenantManagementApplicationModule.cs | 12 +++ ...i.Framework.TenantManagement.Domain.csproj | 2 +- ...ework.TenantManagement.SqlSugarCore.csproj | 2 +- .../Yi.Abp.Application.Contracts.csproj | 1 + .../YiAbpApplicationContractsModule.cs | 2 + .../Yi.Abp.Application.csproj | 1 + .../YiAbpApplicationModule.cs | 3 + Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs | 2 + 19 files changed, 231 insertions(+), 4 deletions(-) create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantCreateInput.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListInput.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListOutputDto.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetOutputDto.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantUpdateInput.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/ITenantService.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Yi.Framework.TenantManagement.Application.Contracts.csproj create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/YiFrameworkTenantManagementApplicationContractsModule.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/TenantService.cs create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/Yi.Framework.TenantManagement.Application.csproj create mode 100644 Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/YiFrameworkTenantManagementApplicationModule.cs diff --git a/Yi.Abp.Net8/Yi.Abp.sln b/Yi.Abp.Net8/Yi.Abp.sln index 48181800..436ef53f 100644 --- a/Yi.Abp.Net8/Yi.Abp.sln +++ b/Yi.Abp.Net8/Yi.Abp.sln @@ -96,9 +96,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.TenantManageme EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.TenantManagement.Domain", "module\tenant-management\Yi.Framework.TenantManagement.Domain\Yi.Framework.TenantManagement.Domain.csproj", "{54D8E2BC-591C-4344-A58E-874D49C00B41}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.AuditLogging.Domain", "module\audit-logging\Yi.Framework.AuditLogging.Domain\Yi.Framework.AuditLogging.Domain.csproj", "{EFD13211-17B5-400A-B99A-9F6F4E520C1E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.AuditLogging.Domain", "module\audit-logging\Yi.Framework.AuditLogging.Domain\Yi.Framework.AuditLogging.Domain.csproj", "{EFD13211-17B5-400A-B99A-9F6F4E520C1E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.AuditLogging.Domain.Shared", "module\audit-logging\Yi.Framework.AuditLogging.Domain.Shared\Yi.Framework.AuditLogging.Domain.Shared.csproj", "{9C8C3C53-3DCE-4516-867E-228858E61B26}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.AuditLogging.Domain.Shared", "module\audit-logging\Yi.Framework.AuditLogging.Domain.Shared\Yi.Framework.AuditLogging.Domain.Shared.csproj", "{9C8C3C53-3DCE-4516-867E-228858E61B26}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.TenantManagement.Application", "module\tenant-management\Yi.Framework.TenantManagement.Application\Yi.Framework.TenantManagement.Application.csproj", "{17816837-E53B-486B-B796-53C601FE6CD9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yi.Framework.TenantManagement.Application.Contracts", "module\tenant-management\Yi.Framework.TenantManagement.Application.Contracts\Yi.Framework.TenantManagement.Application.Contracts.csproj", "{FA735055-CBDD-4EFD-B84B-85810DA1425E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -250,6 +254,14 @@ Global {9C8C3C53-3DCE-4516-867E-228858E61B26}.Debug|Any CPU.Build.0 = Debug|Any CPU {9C8C3C53-3DCE-4516-867E-228858E61B26}.Release|Any CPU.ActiveCfg = Release|Any CPU {9C8C3C53-3DCE-4516-867E-228858E61B26}.Release|Any CPU.Build.0 = Release|Any CPU + {17816837-E53B-486B-B796-53C601FE6CD9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {17816837-E53B-486B-B796-53C601FE6CD9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {17816837-E53B-486B-B796-53C601FE6CD9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {17816837-E53B-486B-B796-53C601FE6CD9}.Release|Any CPU.Build.0 = Release|Any CPU + {FA735055-CBDD-4EFD-B84B-85810DA1425E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA735055-CBDD-4EFD-B84B-85810DA1425E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA735055-CBDD-4EFD-B84B-85810DA1425E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA735055-CBDD-4EFD-B84B-85810DA1425E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -295,6 +307,8 @@ Global {54D8E2BC-591C-4344-A58E-874D49C00B41} = {499A8C71-7892-42D0-A77E-48756E1EFF16} {EFD13211-17B5-400A-B99A-9F6F4E520C1E} = {73CCF2C4-B9FD-44AB-8D4B-0A421805B094} {9C8C3C53-3DCE-4516-867E-228858E61B26} = {73CCF2C4-B9FD-44AB-8D4B-0A421805B094} + {17816837-E53B-486B-B796-53C601FE6CD9} = {499A8C71-7892-42D0-A77E-48756E1EFF16} + {FA735055-CBDD-4EFD-B84B-85810DA1425E} = {499A8C71-7892-42D0-A77E-48756E1EFF16} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {23D6FBC9-C970-4641-BC1E-2AEA59F51C18} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantCreateInput.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantCreateInput.cs new file mode 100644 index 00000000..4d1533c4 --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantCreateInput.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos +{ + public class TenantCreateInput + { + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListInput.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListInput.cs new file mode 100644 index 00000000..1d863220 --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListInput.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos +{ + public class TenantGetListInput + { + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListOutputDto.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListOutputDto.cs new file mode 100644 index 00000000..f1127f18 --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetListOutputDto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; + +namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos +{ + public class TenantGetListOutputDto:EntityDto + { + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetOutputDto.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetOutputDto.cs new file mode 100644 index 00000000..6c6f192f --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantGetOutputDto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; + +namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos +{ + public class TenantGetOutputDto:EntityDto + { + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantUpdateInput.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantUpdateInput.cs new file mode 100644 index 00000000..56013886 --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Dtos/TenantUpdateInput.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos +{ + public class TenantUpdateInput + { + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/ITenantService.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/ITenantService.cs new file mode 100644 index 00000000..d602d3a4 --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/ITenantService.cs @@ -0,0 +1,9 @@ +using Yi.Framework.Ddd.Application.Contracts; +using Yi.Framework.TenantManagement.Application.Contracts.Dtos; + +namespace Yi.Framework.TenantManagement.Application.Contracts +{ + public interface ITenantService:IYiCrudAppService< TenantGetOutputDto, TenantGetListOutputDto, Guid, TenantGetListInput, TenantCreateInput, TenantUpdateInput> + { + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Yi.Framework.TenantManagement.Application.Contracts.csproj b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Yi.Framework.TenantManagement.Application.Contracts.csproj new file mode 100644 index 00000000..c12af7cb --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/Yi.Framework.TenantManagement.Application.Contracts.csproj @@ -0,0 +1,15 @@ + + + + net8.0 + enable + enable + + + + + + + + + diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/YiFrameworkTenantManagementApplicationContractsModule.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/YiFrameworkTenantManagementApplicationContractsModule.cs new file mode 100644 index 00000000..2ce5cbdc --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application.Contracts/YiFrameworkTenantManagementApplicationContractsModule.cs @@ -0,0 +1,13 @@ +using Volo.Abp.Modularity; +using Volo.Abp.TenantManagement; +using Yi.Framework.Ddd.Application.Contracts; + +namespace Yi.Framework.TenantManagement.Application.Contracts +{ + [DependsOn(typeof(AbpTenantManagementDomainSharedModule), + typeof(YiFrameworkDddApplicationContractsModule))] + public class YiFrameworkTenantManagementApplicationContractsModule:AbpModule + { + + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/TenantService.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/TenantService.cs new file mode 100644 index 00000000..43de14cf --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/TenantService.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Domain.Repositories; +using Yi.Framework.Ddd.Application; +using Yi.Framework.SqlSugarCore.Abstractions; +using Yi.Framework.TenantManagement.Application.Contracts; +using Yi.Framework.TenantManagement.Application.Contracts.Dtos; +using Yi.Framework.TenantManagement.Domain; + +namespace Yi.Framework.TenantManagement.Application +{ + /// + /// 租户管理 + /// + public class TenantService : YiCrudAppService, ITenantService + { + private ISqlSugarRepository _repository; + public TenantService(ISqlSugarRepository repository) : base(repository) + { + _repository = repository; + } + + /// + /// 租户单查 + /// + /// + /// + public override Task GetAsync(Guid id) + { + return base.GetAsync(id); + } + + /// + /// 租户多查 + /// + /// + /// + public override Task> GetListAsync(TenantGetListInput input) + { + return base.GetListAsync(input); + } + + /// + /// 创建租户 + /// + /// + /// + public override Task CreateAsync(TenantCreateInput input) + { + return base.CreateAsync(input); + } + + /// + /// 更新租户 + /// + /// + /// + /// + public override Task UpdateAsync(Guid id, TenantUpdateInput input) + { + return base.UpdateAsync(id, input); + } + + /// + /// 租户删除 + /// + /// + /// + public override Task DeleteAsync(IEnumerable id) + { + return base.DeleteAsync(id); + } + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/Yi.Framework.TenantManagement.Application.csproj b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/Yi.Framework.TenantManagement.Application.csproj new file mode 100644 index 00000000..6546aa96 --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/Yi.Framework.TenantManagement.Application.csproj @@ -0,0 +1,15 @@ + + + + net8.0 + enable + enable + + + + + + + + + diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/YiFrameworkTenantManagementApplicationModule.cs b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/YiFrameworkTenantManagementApplicationModule.cs new file mode 100644 index 00000000..c8da2d88 --- /dev/null +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Application/YiFrameworkTenantManagementApplicationModule.cs @@ -0,0 +1,12 @@ +using Volo.Abp.Modularity; +using Yi.Framework.Ddd.Application; +using Yi.Framework.TenantManagement.Domain; + +namespace Yi.Framework.TenantManagement.Application +{ + [DependsOn(typeof(YiFrameworkTenantManagementDomainModule))] + public class YiFrameworkTenantManagementApplicationModule: AbpModule + { + + } +} diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Domain/Yi.Framework.TenantManagement.Domain.csproj b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Domain/Yi.Framework.TenantManagement.Domain.csproj index 4b246a2c..a8cfb482 100644 --- a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Domain/Yi.Framework.TenantManagement.Domain.csproj +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.Domain/Yi.Framework.TenantManagement.Domain.csproj @@ -1,5 +1,5 @@  - + net8.0 enable diff --git a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.SqlSugarCore/Yi.Framework.TenantManagement.SqlSugarCore.csproj b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.SqlSugarCore/Yi.Framework.TenantManagement.SqlSugarCore.csproj index afb79a66..58781f40 100644 --- a/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.SqlSugarCore/Yi.Framework.TenantManagement.SqlSugarCore.csproj +++ b/Yi.Abp.Net8/module/tenant-management/Yi.Framework.TenantManagement.SqlSugarCore/Yi.Framework.TenantManagement.SqlSugarCore.csproj @@ -1,5 +1,5 @@  - + net8.0 enable diff --git a/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/Yi.Abp.Application.Contracts.csproj b/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/Yi.Abp.Application.Contracts.csproj index d6f06030..a5bb1c0d 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/Yi.Abp.Application.Contracts.csproj +++ b/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/Yi.Abp.Application.Contracts.csproj @@ -5,6 +5,7 @@ + diff --git a/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/YiAbpApplicationContractsModule.cs b/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/YiAbpApplicationContractsModule.cs index 61b959c6..fbf5ab56 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/YiAbpApplicationContractsModule.cs +++ b/Yi.Abp.Net8/src/Yi.Abp.Application.Contracts/YiAbpApplicationContractsModule.cs @@ -3,6 +3,7 @@ using Yi.Abp.Domain.Shared; using Yi.Framework.Bbs.Application.Contracts; using Yi.Framework.Ddd.Application.Contracts; using Yi.Framework.Rbac.Application.Contracts; +using Yi.Framework.TenantManagement.Application.Contracts; namespace Yi.Abp.Application.Contracts { @@ -12,6 +13,7 @@ namespace Yi.Abp.Application.Contracts typeof(YiFrameworkRbacApplicationContractsModule), typeof(YiFrameworkBbsApplicationContractsModule), + typeof(YiFrameworkTenantManagementApplicationContractsModule), typeof(YiFrameworkDddApplicationContractsModule))] public class YiAbpApplicationContractsModule:AbpModule { diff --git a/Yi.Abp.Net8/src/Yi.Abp.Application/Yi.Abp.Application.csproj b/Yi.Abp.Net8/src/Yi.Abp.Application/Yi.Abp.Application.csproj index 2371f0ed..19c953bb 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Application/Yi.Abp.Application.csproj +++ b/Yi.Abp.Net8/src/Yi.Abp.Application/Yi.Abp.Application.csproj @@ -9,6 +9,7 @@ + diff --git a/Yi.Abp.Net8/src/Yi.Abp.Application/YiAbpApplicationModule.cs b/Yi.Abp.Net8/src/Yi.Abp.Application/YiAbpApplicationModule.cs index b7caf81c..652d1dac 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Application/YiAbpApplicationModule.cs +++ b/Yi.Abp.Net8/src/Yi.Abp.Application/YiAbpApplicationModule.cs @@ -4,6 +4,7 @@ using Yi.Abp.Domain; using Yi.Framework.Bbs.Application; using Yi.Framework.Ddd.Application; using Yi.Framework.Rbac.Application; +using Yi.Framework.TenantManagement.Application; namespace Yi.Abp.Application { @@ -14,6 +15,8 @@ namespace Yi.Abp.Application typeof(YiFrameworkRbacApplicationModule), typeof(YiFrameworkBbsApplicationModule), + typeof(YiFrameworkTenantManagementApplicationModule), + typeof(YiFrameworkDddApplicationModule) )] diff --git a/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs b/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs index 02a6e7fb..96792d4e 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs +++ b/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs @@ -29,6 +29,7 @@ using Yi.Framework.Rbac.Application; using Yi.Framework.Rbac.Domain.Authorization; using Yi.Framework.Rbac.Domain.Shared.Consts; using Yi.Framework.Rbac.Domain.Shared.Options; +using Yi.Framework.TenantManagement.Application; namespace Yi.Abp.Web { @@ -72,6 +73,7 @@ namespace Yi.Abp.Web options.ConventionalControllers.Create(typeof(YiAbpApplicationModule).Assembly, options => options.RemoteServiceName = "default"); options.ConventionalControllers.Create(typeof(YiFrameworkRbacApplicationModule).Assembly, options => options.RemoteServiceName = "rbac"); options.ConventionalControllers.Create(typeof(YiFrameworkBbsApplicationModule).Assembly, options => options.RemoteServiceName = "bbs"); + options.ConventionalControllers.Create(typeof(YiFrameworkTenantManagementApplicationModule).Assembly, options => options.RemoteServiceName = "tenant-management"); }); //设置api格式