From 54ea6747d4471433ee5d70f31a0a6f019d4bbfd3 Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Mon, 6 May 2024 14:40:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=BE=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=8C=85=E5=90=8D=E9=94=99=E8=AF=AF=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NPinFrameworkSettingManagementDomainModule.cs | 1 + .../Options/SettingManagementOptions.cs | 3 ++- .../Provider/ConfigurationSettingManagementProvider.cs | 2 +- .../Provider/DefaultValueSettingManagementProvider.cs | 2 +- .../Provider/GlobalSettingManagementProvider.cs | 5 +++-- .../Provider/ISettingManagementProvider.cs | 2 +- .../Provider/TenantSettingManagementProvider.cs | 5 +++-- .../Provider/UserSettingManagementProvider.cs | 5 +++-- .../SettingManagementProvider.cs | 4 +++- .../SettingManager.cs | 1 + .../Store/ISettingManagementStore.cs | 2 +- .../Store/SettingManagementStore.cs | 2 +- .../Store/SettingStore.cs | 2 +- 13 files changed, 22 insertions(+), 14 deletions(-) diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/NPinFrameworkSettingManagementDomainModule.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/NPinFrameworkSettingManagementDomainModule.cs index 967f544..e3a547c 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/NPinFrameworkSettingManagementDomainModule.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/NPinFrameworkSettingManagementDomainModule.cs @@ -1,4 +1,5 @@ using NPin.Framework.SettingManagement.Domain.Options; +using NPin.Framework.SettingManagement.Domain.Provider; using Volo.Abp.Caching; using Volo.Abp.Domain; using Volo.Abp.SettingManagement; diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Options/SettingManagementOptions.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Options/SettingManagementOptions.cs index 5ce2180..5a4e3e1 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Options/SettingManagementOptions.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Options/SettingManagementOptions.cs @@ -1,4 +1,5 @@ -using Volo.Abp.Collections; +using NPin.Framework.SettingManagement.Domain.Provider; +using Volo.Abp.Collections; namespace NPin.Framework.SettingManagement.Domain.Options; diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ConfigurationSettingManagementProvider.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ConfigurationSettingManagementProvider.cs index dcade41..5cfe203 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ConfigurationSettingManagementProvider.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ConfigurationSettingManagementProvider.cs @@ -2,7 +2,7 @@ using Volo.Abp.DependencyInjection; using Volo.Abp.Settings; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Provider; public class ConfigurationSettingManagementProvider: ISettingManagementProvider, ITransientDependency { diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/DefaultValueSettingManagementProvider.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/DefaultValueSettingManagementProvider.cs index c857036..cd3212e 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/DefaultValueSettingManagementProvider.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/DefaultValueSettingManagementProvider.cs @@ -1,7 +1,7 @@ using Volo.Abp.DependencyInjection; using Volo.Abp.Settings; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Provider; public class DefaultValueSettingManagementProvider : ISettingManagementProvider, ISingletonDependency { diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/GlobalSettingManagementProvider.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/GlobalSettingManagementProvider.cs index 87567bf..94e49a5 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/GlobalSettingManagementProvider.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/GlobalSettingManagementProvider.cs @@ -1,7 +1,8 @@ -using Volo.Abp.DependencyInjection; +using NPin.Framework.SettingManagement.Domain.Store; +using Volo.Abp.DependencyInjection; using Volo.Abp.Settings; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Provider; public class GlobalSettingManagementProvider: SettingManagementProvider, ITransientDependency { diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ISettingManagementProvider.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ISettingManagementProvider.cs index 414c916..cf28bfc 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ISettingManagementProvider.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/ISettingManagementProvider.cs @@ -1,7 +1,7 @@ using JetBrains.Annotations; using Volo.Abp.Settings; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Provider; public interface ISettingManagementProvider { diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/TenantSettingManagementProvider.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/TenantSettingManagementProvider.cs index 2f17537..fe290b3 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/TenantSettingManagementProvider.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/TenantSettingManagementProvider.cs @@ -1,8 +1,9 @@ -using Volo.Abp.DependencyInjection; +using NPin.Framework.SettingManagement.Domain.Store; +using Volo.Abp.DependencyInjection; using Volo.Abp.MultiTenancy; using Volo.Abp.Settings; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Provider; public class TenantSettingManagementProvider : SettingManagementProvider, ITransientDependency { diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/UserSettingManagementProvider.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/UserSettingManagementProvider.cs index 46509e4..5c9651e 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/UserSettingManagementProvider.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Provider/UserSettingManagementProvider.cs @@ -1,8 +1,9 @@ -using Volo.Abp.DependencyInjection; +using NPin.Framework.SettingManagement.Domain.Store; +using Volo.Abp.DependencyInjection; using Volo.Abp.Settings; using Volo.Abp.Users; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Provider; public class UserSettingManagementProvider : SettingManagementProvider, ITransientDependency { diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManagementProvider.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManagementProvider.cs index 3118321..6387891 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManagementProvider.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManagementProvider.cs @@ -1,4 +1,6 @@ -using Volo.Abp.Settings; +using NPin.Framework.SettingManagement.Domain.Provider; +using NPin.Framework.SettingManagement.Domain.Store; +using Volo.Abp.Settings; namespace NPin.Framework.SettingManagement.Domain; diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManager.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManager.cs index 262f981..df1615b 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManager.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/SettingManager.cs @@ -1,6 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using NPin.Framework.SettingManagement.Domain.Options; +using NPin.Framework.SettingManagement.Domain.Provider; using Volo.Abp.DependencyInjection; using Volo.Abp.Settings; diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/ISettingManagementStore.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/ISettingManagementStore.cs index 83c1c46..ee98b77 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/ISettingManagementStore.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/ISettingManagementStore.cs @@ -1,6 +1,6 @@ using Volo.Abp.Settings; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Store; /// /// 设置存储器 diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingManagementStore.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingManagementStore.cs index 2028c07..5c3c19f 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingManagementStore.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingManagementStore.cs @@ -6,7 +6,7 @@ using Volo.Abp.Guids; using Volo.Abp.Settings; using Volo.Abp.Uow; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Store; public class SettingManagementStore : ISettingManagementStore, ITransientDependency { diff --git a/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingStore.cs b/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingStore.cs index 1dfd97f..49dece3 100644 --- a/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingStore.cs +++ b/module/setting-management/NPin.Framework.SettingManagement.Domain/Store/SettingStore.cs @@ -1,7 +1,7 @@ using Volo.Abp.DependencyInjection; using Volo.Abp.Settings; -namespace NPin.Framework.SettingManagement.Domain; +namespace NPin.Framework.SettingManagement.Domain.Store; /// /// 设置存储