chore 优化代码

This commit is contained in:
2025-10-16 10:30:51 +08:00
parent f1c609b4be
commit 1f5bc3e971
367 changed files with 2705 additions and 3083 deletions

View File

@ -3,4 +3,4 @@
public static class DispatchDomainErrorCodes
{
/* You can add your business exception error codes here, as constants */
}
}

View File

@ -23,8 +23,8 @@ namespace KonSoft.Dispatch;
typeof(AbpOpenIddictDomainSharedModule),
typeof(AbpPermissionManagementDomainSharedModule),
typeof(AbpSettingManagementDomainSharedModule),
typeof(AbpTenantManagementDomainSharedModule)
)]
typeof(AbpTenantManagementDomainSharedModule)
)]
public class DispatchDomainSharedModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
@ -55,4 +55,4 @@ public class DispatchDomainSharedModule : AbpModule
options.MapCodeNamespace("Dispatch", typeof(DispatchResource));
});
}
}
}

View File

@ -4,19 +4,19 @@ namespace KonSoft.Dispatch;
public static class DispatchGlobalFeatureConfigurator
{
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
private static readonly OneTimeRunner OneTimeRunner = new();
public static void Configure()
{
OneTimeRunner.Run(() =>
{
/* You can configure (enable/disable) global features of the used modules here.
*
* YOU CAN SAFELY DELETE THIS CLASS AND REMOVE ITS USAGES IF YOU DON'T NEED TO IT!
*
* Please refer to the documentation to lear more about the Global Features System:
* https://docs.abp.io/en/abp/latest/Global-Features
*/
/* You can configure (enable/disable) global features of the used modules here.
*
* YOU CAN SAFELY DELETE THIS CLASS AND REMOVE ITS USAGES IF YOU DON'T NEED TO IT!
*
* Please refer to the documentation to lear more about the Global Features System:
* https://docs.abp.io/en/abp/latest/Global-Features
*/
});
}
}
}

View File

@ -1,13 +1,10 @@
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Identity;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Threading;
using Volo.Abp.Threading;
namespace KonSoft.Dispatch;
public static class DispatchModuleExtensionConfigurator
{
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
private static readonly OneTimeRunner OneTimeRunner = new();
public static void Configure()
{
@ -57,7 +54,7 @@ public static class DispatchModuleExtensionConfigurator
//validation rules
property.Attributes.Add(new RequiredAttribute());
property.Attributes.Add(new StringLengthAttribute(64) {MinimumLength = 4});
property.Configuration[IdentityModuleExtensionConsts.ConfigurationNames.AllowUserToEdit] = true;
//...other configurations for this property
@ -70,4 +67,4 @@ public static class DispatchModuleExtensionConfigurator
* https://docs.abp.io/en/abp/latest/Module-Entity-Extensions
*/
}
}
}

View File

@ -5,5 +5,4 @@ namespace KonSoft.Dispatch.Localization;
[LocalizationResourceName("Dispatch")]
public class DispatchResource
{
}
}

View File

@ -7,4 +7,4 @@ public static class MultiTenancyConsts
* related modules and code parts, including this file.
*/
public const bool IsEnabled = true;
}
}