Browse Source

add webhook definition extension entity

pull/765/head
cKey 3 years ago
parent
commit
c5729e476c
  1. 2
      aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain.Shared/LINGYUN/Abp/WebhooksManagement/ObjectExtending/WebhooksManagementModuleExtensionConsts.cs
  2. 10
      aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Domain/LINGYUN/Abp/WebhooksManagement/WebhooksManagementDomainModule.cs

2
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";
}
}

10
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)
);
});
}

Loading…
Cancel
Save