From c5729e476c951e699a3709bc520852468a92dc86 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Thu, 12 Jan 2023 08:20:45 +0800 Subject: [PATCH] add webhook definition extension entity --- .../WebhooksManagementModuleExtensionConsts.cs | 2 ++ .../WebhooksManagementDomainModule.cs | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain.Shared/LINGYUN/Abp/WebhooksManagement/ObjectExtending/WebhooksManagementModuleExtensionConsts.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain.Shared/LINGYUN/Abp/WebhooksManagement/ObjectExtending/WebhooksManagementModuleExtensionConsts.cs index a51d51035..68e6b42f5 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain.Shared/LINGYUN/Abp/WebhooksManagement/ObjectExtending/WebhooksManagementModuleExtensionConsts.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain.Shared/LINGYUN/Abp/WebhooksManagement/ObjectExtending/WebhooksManagementModuleExtensionConsts.cs @@ -9,5 +9,7 @@ public static class WebhooksManagementModuleExtensionConsts public const string WebhookEvent = "WebhookEvent"; public const string WebhookSendAttempt = "WebhookSendAttempt"; public const string WebhookSubscription = "WebhookSubscription"; + public const string WebhookGroupDefinition = "WebhookGroupDefinition"; + public const string WebhookDefinition = "WebhookDefinition"; } } diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain/LINGYUN/Abp/WebhooksManagement/WebhooksManagementDomainModule.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain/LINGYUN/Abp/WebhooksManagement/WebhooksManagementDomainModule.cs index 0b530ea72..9b1c7f446 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain/LINGYUN/Abp/WebhooksManagement/WebhooksManagementDomainModule.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain/LINGYUN/Abp/WebhooksManagement/WebhooksManagementDomainModule.cs @@ -77,6 +77,16 @@ public class WebhooksManagementDomainModule : AbpModule WebhooksManagementModuleExtensionConsts.EntityNames.WebhookSendAttempt, typeof(WebhookSendRecord) ); + ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToEntity( + WebhooksManagementModuleExtensionConsts.ModuleName, + WebhooksManagementModuleExtensionConsts.EntityNames.WebhookGroupDefinition, + typeof(WebhookGroupDefinitionRecord) + ); + ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToEntity( + WebhooksManagementModuleExtensionConsts.ModuleName, + WebhooksManagementModuleExtensionConsts.EntityNames.WebhookDefinition, + typeof(WebhookDefinitionRecord) + ); }); }