chore 优化代码
This commit is contained in:
		| @ -17,4 +17,4 @@ public class TenantManagementPermissionDefinitionProvider : PermissionDefinition | ||||
|     { | ||||
|         return LocalizableString.Create<TenantManagementResource>(name); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -6,4 +6,4 @@ public static class TenantManagementPermissions | ||||
|  | ||||
|     //Add your own permission names. Example: | ||||
|     //public const string MyPermission1 = GroupName + ".MyPermission1"; | ||||
| } | ||||
| } | ||||
| @ -25,4 +25,4 @@ public class TenantManagementApplicationContractsModule : AbpModule | ||||
|     { | ||||
|         TenantManagementDtoExtensions.Configure(); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @ -1,28 +1,26 @@ | ||||
| using Volo.Abp.Identity; | ||||
| using Volo.Abp.ObjectExtending; | ||||
| using Volo.Abp.Threading; | ||||
| using Volo.Abp.Threading; | ||||
|  | ||||
| namespace KonSoft.TenantManagement; | ||||
|  | ||||
| public static class TenantManagementDtoExtensions | ||||
| { | ||||
|     private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); | ||||
|     private static readonly OneTimeRunner OneTimeRunner = new(); | ||||
|  | ||||
|     public static void Configure() | ||||
|     { | ||||
|         OneTimeRunner.Run(() => | ||||
|         { | ||||
|                 /* You can add extension properties to DTOs | ||||
|                  * defined in the depended modules. | ||||
|                  * | ||||
|                  * Example: | ||||
|                  * | ||||
|                  * ObjectExtensionManager.Instance | ||||
|                  *   .AddOrUpdateProperty<IdentityRoleDto, string>("Title"); | ||||
|                  * | ||||
|                  * See the documentation for more: | ||||
|                  * https://docs.abp.io/en/abp/latest/Object-Extensions | ||||
|                  */ | ||||
|             /* You can add extension properties to DTOs | ||||
|              * defined in the depended modules. | ||||
|              * | ||||
|              * Example: | ||||
|              * | ||||
|              * ObjectExtensionManager.Instance | ||||
|              *   .AddOrUpdateProperty<IdentityRoleDto, string>("Title"); | ||||
|              * | ||||
|              * See the documentation for more: | ||||
|              * https://docs.abp.io/en/abp/latest/Object-Extensions | ||||
|              */ | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user