chore 优化代码
This commit is contained in:
		| @ -3,4 +3,4 @@ | ||||
| public static class DispatchDomainErrorCodes | ||||
| { | ||||
|     /* You can add your business exception error codes here, as constants */ | ||||
| } | ||||
| } | ||||
| @ -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)); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -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 | ||||
|              */ | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -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 | ||||
|          */ | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -5,5 +5,4 @@ namespace KonSoft.Dispatch.Localization; | ||||
| [LocalizationResourceName("Dispatch")] | ||||
| public class DispatchResource | ||||
| { | ||||
|  | ||||
| } | ||||
| } | ||||
| @ -7,4 +7,4 @@ public static class MultiTenancyConsts | ||||
|      * related modules and code parts, including this file. | ||||
|      */ | ||||
|     public const bool IsEnabled = true; | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user