chore 优化代码
This commit is contained in:
		| @ -3,4 +3,4 @@ | ||||
| public static class AdminDomainErrorCodes | ||||
| { | ||||
|     /* You can add your business exception error codes here, as constants */ | ||||
| } | ||||
| } | ||||
| @ -23,8 +23,8 @@ namespace KonSoft.Admin; | ||||
|     typeof(AbpOpenIddictDomainSharedModule), | ||||
|     typeof(AbpPermissionManagementDomainSharedModule), | ||||
|     typeof(AbpSettingManagementDomainSharedModule), | ||||
|     typeof(AbpTenantManagementDomainSharedModule)     | ||||
|     )] | ||||
|     typeof(AbpTenantManagementDomainSharedModule) | ||||
| )] | ||||
| public class AdminDomainSharedModule : AbpModule | ||||
| { | ||||
|     public override void PreConfigureServices(ServiceConfigurationContext context) | ||||
| @ -35,10 +35,7 @@ public class AdminDomainSharedModule : AbpModule | ||||
|  | ||||
|     public override void ConfigureServices(ServiceConfigurationContext context) | ||||
|     { | ||||
|         Configure<AbpVirtualFileSystemOptions>(options => | ||||
|         { | ||||
|             options.FileSets.AddEmbedded<AdminDomainSharedModule>(); | ||||
|         }); | ||||
|         Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded<AdminDomainSharedModule>(); }); | ||||
|  | ||||
|         Configure<AbpLocalizationOptions>(options => | ||||
|         { | ||||
| @ -55,4 +52,4 @@ public class AdminDomainSharedModule : AbpModule | ||||
|             options.MapCodeNamespace("Admin", typeof(AdminResource)); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -4,19 +4,19 @@ namespace KonSoft.Admin; | ||||
|  | ||||
| public static class AdminGlobalFeatureConfigurator | ||||
| { | ||||
|     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.Admin; | ||||
|  | ||||
| public static class AdminModuleExtensionConfigurator | ||||
| { | ||||
|     private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); | ||||
|     private static readonly OneTimeRunner OneTimeRunner = new(); | ||||
|  | ||||
|     public static void Configure() | ||||
|     { | ||||
| @ -57,7 +54,7 @@ public static class AdminModuleExtensionConfigurator | ||||
|                               //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 AdminModuleExtensionConfigurator | ||||
|          * https://docs.abp.io/en/abp/latest/Module-Entity-Extensions | ||||
|          */ | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -1,22 +1,14 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
| namespace KonSoft.Admin.Enums; | ||||
|  | ||||
| namespace KonSoft.Admin.Enums | ||||
| public enum OrderStatus | ||||
| { | ||||
|     public enum OrderStatus | ||||
|     { | ||||
|         PendingPayment,      // 待支付 | ||||
|         PaidWaitingAssign,   // 已支付待派单 | ||||
|         AssignedWaitingService, // 已派单待服务 | ||||
|         InService,           // 服务中 | ||||
|         WaitingConfirm,      // 待用户确认 | ||||
|         Completed,           // 已完成 | ||||
|         Canceled,            // 已取消 | ||||
|         Refunding,           // 退款中 | ||||
|         Refunded             // 已退款 | ||||
|  | ||||
|     } | ||||
| } | ||||
|     PendingPayment, // 待支付 | ||||
|     PaidWaitingAssign, // 已支付待派单 | ||||
|     AssignedWaitingService, // 已派单待服务 | ||||
|     InService, // 服务中 | ||||
|     WaitingConfirm, // 待用户确认 | ||||
|     Completed, // 已完成 | ||||
|     Canceled, // 已取消 | ||||
|     Refunding, // 退款中 | ||||
|     Refunded // 已退款 | ||||
| } | ||||
| @ -5,5 +5,4 @@ namespace KonSoft.Admin.Localization; | ||||
| [LocalizationResourceName("Admin")] | ||||
| public class AdminResource | ||||
| { | ||||
|  | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user