From 4c640ad010db0a953d33dd505e8494375f18c9b6 Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 3 Mar 2025 21:01:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(webhook):=20Webhooks=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=9B=86=E6=88=90=E6=9C=8D=E5=8A=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ClientProxiesWebhookPublisher.cs | 5 +- .../Abp/Webhooks/WebhooksDefinitionConsts.cs | 7 + .../Abp/Webhooks/DefaultWebhookSender.cs | 3 +- .../IWebhookGroupDefinitionAppService.cs | 2 +- .../IWebhookPublishIntegrationService.cs | 11 + .../WebhookGroupDefinitionAppService.cs | 2 +- .../WebhookPublishIntegrationService.cs | 42 + .../WebhooksManagementDomainModule.cs | 4 + .../WebhookDefinitionClientProxy.Generated.cs | 61 + .../WebhookDefinitionClientProxy.cs | 7 + ...ookGroupDefinitionClientProxy.Generated.cs | 60 + .../WebhookGroupDefinitionClientProxy.cs | 7 + ...PublishIntegrationClientProxy.Generated.cs | 29 + .../WebhookPublishIntegrationClientProxy.cs | 7 + .../WebhookPublishClientProxy.Generated.cs | 27 + .../WebhookPublishClientProxy.cs | 7 + .../WebhookSendRecordClientProxy.Generated.cs | 67 + .../WebhookSendRecordClientProxy.cs | 7 + ...ebhookSubscriptionClientProxy.Generated.cs | 73 + .../WebhookSubscriptionClientProxy.cs | 7 + .../webhooks-management-generate-proxy.json | 1774 +++++++++++++++++ ...p.WebhooksManagement.HttpApi.Client.csproj | 8 + .../WebhooksManagementHttpApiClientModule.cs | 2 +- .../WebhookGroupDefinitionController.cs | 4 +- .../WebhookPublishIntegrationController.cs | 26 + 25 files changed, 2241 insertions(+), 8 deletions(-) create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.Core/LINGYUN/Abp/Webhooks/WebhooksDefinitionConsts.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Integration/IWebhookPublishIntegrationService.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationService.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.Generated.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.Generated.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.Generated.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.Generated.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.Generated.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.Generated.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.cs create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/webhooks-management-generate-proxy.json create mode 100644 aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationController.cs diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.ClientProxies/LINGYUN/Abp/Webhooks/ClientProxies/ClientProxiesWebhookPublisher.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.ClientProxies/LINGYUN/Abp/Webhooks/ClientProxies/ClientProxiesWebhookPublisher.cs index fe15c139e..71f880505 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.ClientProxies/LINGYUN/Abp/Webhooks/ClientProxies/ClientProxiesWebhookPublisher.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.ClientProxies/LINGYUN/Abp/Webhooks/ClientProxies/ClientProxiesWebhookPublisher.cs @@ -1,4 +1,5 @@ using LINGYUN.Abp.WebhooksManagement; +using LINGYUN.Abp.WebhooksManagement.Integration; using Newtonsoft.Json; using System; using System.Collections.Generic; @@ -11,10 +12,10 @@ namespace LINGYUN.Abp.Webhooks.ClientProxies; [Dependency(ReplaceServices = true)] public class ClientProxiesWebhookPublisher : IWebhookPublisher, ITransientDependency { - protected IWebhookPublishAppService PublishAppService { get; } + protected IWebhookPublishIntegrationService PublishAppService { get; } public ClientProxiesWebhookPublisher( - IWebhookPublishAppService publishAppService) + IWebhookPublishIntegrationService publishAppService) { PublishAppService = publishAppService; } diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.Core/LINGYUN/Abp/Webhooks/WebhooksDefinitionConsts.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.Core/LINGYUN/Abp/Webhooks/WebhooksDefinitionConsts.cs new file mode 100644 index 000000000..da6ea381f --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks.Core/LINGYUN/Abp/Webhooks/WebhooksDefinitionConsts.cs @@ -0,0 +1,7 @@ +namespace LINGYUN.Abp.Webhooks; + +public static class WebhooksDefinitionConsts +{ + public static int MinimumTimeoutDuration { get; set; } = 10; + public static int MaximumTimeoutDuration { get; set; } = 300; +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks/LINGYUN/Abp/Webhooks/DefaultWebhookSender.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks/LINGYUN/Abp/Webhooks/DefaultWebhookSender.cs index ceadcf024..c50c97589 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks/LINGYUN/Abp/Webhooks/DefaultWebhookSender.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.Webhooks/LINGYUN/Abp/Webhooks/DefaultWebhookSender.cs @@ -118,7 +118,8 @@ namespace LINGYUN.Abp.Webhooks { var client = _httpClientFactory.CreateClient(AbpWebhooksModule.WebhooksClient); if (webhookSenderArgs.TimeoutDuration.HasValue && - (webhookSenderArgs.TimeoutDuration >= 10 && webhookSenderArgs.TimeoutDuration <= 300)) + (webhookSenderArgs.TimeoutDuration >= WebhooksDefinitionConsts.MinimumTimeoutDuration && + webhookSenderArgs.TimeoutDuration <= WebhooksDefinitionConsts.MaximumTimeoutDuration)) { client.Timeout = TimeSpan.FromSeconds(webhookSenderArgs.TimeoutDuration.Value); } diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Definitions/IWebhookGroupDefinitionAppService.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Definitions/IWebhookGroupDefinitionAppService.cs index 2a2e5c120..bd8ee78fd 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Definitions/IWebhookGroupDefinitionAppService.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Definitions/IWebhookGroupDefinitionAppService.cs @@ -8,7 +8,7 @@ public interface IWebhookGroupDefinitionAppService : IApplicationService { Task GetAsync(string name); - Task DeleteAysnc(string name); + Task DeleteAsync(string name); Task CreateAsync(WebhookGroupDefinitionCreateDto input); diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Integration/IWebhookPublishIntegrationService.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Integration/IWebhookPublishIntegrationService.cs new file mode 100644 index 000000000..8a5378bbb --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application.Contracts/LINGYUN/Abp/WebhooksManagement/Integration/IWebhookPublishIntegrationService.cs @@ -0,0 +1,11 @@ +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Services; + +namespace LINGYUN.Abp.WebhooksManagement.Integration; + +[IntegrationService] +public interface IWebhookPublishIntegrationService : IApplicationService +{ + Task PublishAsync(WebhookPublishInput input); +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionAppService.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionAppService.cs index 4fbd18e35..fff175c71 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionAppService.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionAppService.cs @@ -71,7 +71,7 @@ public class WebhookGroupDefinitionAppService : WebhooksManagementAppServiceBase } [Authorize(WebhooksManagementPermissions.WebhookGroupDefinition.Delete)] - public async virtual Task DeleteAysnc(string name) + public async virtual Task DeleteAsync(string name) { var webhookGroupDefinitionRecord = await _webhookGroupDefinitionRecordRepository.FindByNameAsync(name); if (webhookGroupDefinitionRecord != null) diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationService.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationService.cs new file mode 100644 index 000000000..ab6885084 --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationService.cs @@ -0,0 +1,42 @@ +using LINGYUN.Abp.Webhooks; +using Newtonsoft.Json; +using System.Linq; +using System.Threading.Tasks; + +namespace LINGYUN.Abp.WebhooksManagement.Integration; + +public class WebhookPublishIntegrationService : WebhooksManagementAppServiceBase, IWebhookPublishIntegrationService +{ + protected IWebhookPublisher InnerPublisher { get; } + + public WebhookPublishIntegrationService(IWebhookPublisher innerPublisher) + { + InnerPublisher = innerPublisher; + } + + public async virtual Task PublishAsync(WebhookPublishInput input) + { + var webhookHeader = new WebhookHeader + { + UseOnlyGivenHeaders = input.Header.UseOnlyGivenHeaders, + Headers = input.Header.Headers, + }; + var inputData = JsonConvert.DeserializeObject(input.Data); + + if (input.TenantIds.Any()) + { + await InnerPublisher.PublishAsync( + input.TenantIds.ToArray(), + input.WebhookName, + inputData, + input.SendExactSameData, + webhookHeader); + return; + } + await InnerPublisher.PublishAsync( + input.WebhookName, + inputData, + input.SendExactSameData, + webhookHeader); + } +} 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 6b26e5a35..58ccf42e2 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 @@ -21,6 +21,7 @@ public class WebhooksManagementDomainModule : AbpModule { private readonly CancellationTokenSource _cancellationTokenSource = new(); private readonly static OneTimeRunner OneTimeRunner = new(); + public override void ConfigureServices(ServiceConfigurationContext context) { context.Services.AddAutoMapperObjectMapper(); @@ -55,6 +56,9 @@ public class WebhooksManagementDomainModule : AbpModule { OneTimeRunner.Run(() => { + WebhooksDefinitionConsts.MinimumTimeoutDuration = WebhookSubscriptionConsts.TimeoutDurationMinimum; + WebhooksDefinitionConsts.MaximumTimeoutDuration = WebhookSubscriptionConsts.TimeoutDurationMaximum; + // 扩展实体配置 ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToEntity( WebhooksManagementModuleExtensionConsts.ModuleName, diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.Generated.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.Generated.cs new file mode 100644 index 000000000..630330b75 --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.Generated.cs @@ -0,0 +1,61 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.WebhooksManagement.Definitions; +using LINGYUN.Abp.WebhooksManagement.Definitions.Dto; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement.Definitions; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IWebhookDefinitionAppService), typeof(WebhookDefinitionClientProxy))] +public partial class WebhookDefinitionClientProxy : ClientProxyBase, IWebhookDefinitionAppService +{ + public virtual async Task CreateAsync(WebhookDefinitionCreateDto input) + { + return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookDefinitionCreateDto), input } + }); + } + + public virtual async Task DeleteAsync(string name) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name } + }); + } + + public virtual async Task GetAsync(string name) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name } + }); + } + + public virtual async Task> GetListAsync(WebhookDefinitionGetListInput input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookDefinitionGetListInput), input } + }); + } + + public virtual async Task UpdateAsync(string name, WebhookDefinitionUpdateDto input) + { + return await RequestAsync(nameof(UpdateAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name }, + { typeof(WebhookDefinitionUpdateDto), input } + }); + } +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.cs new file mode 100644 index 000000000..86bbd225b --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookDefinitionClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of WebhookDefinitionClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement.Definitions; + +public partial class WebhookDefinitionClientProxy +{ +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.Generated.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.Generated.cs new file mode 100644 index 000000000..a37250874 --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.Generated.cs @@ -0,0 +1,60 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.WebhooksManagement.Definitions; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement.Definitions; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IWebhookGroupDefinitionAppService), typeof(WebhookGroupDefinitionClientProxy))] +public partial class WebhookGroupDefinitionClientProxy : ClientProxyBase, IWebhookGroupDefinitionAppService +{ + public virtual async Task CreateAsync(WebhookGroupDefinitionCreateDto input) + { + return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookGroupDefinitionCreateDto), input } + }); + } + + public virtual async Task DeleteAsync(string name) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name } + }); + } + + public virtual async Task GetAsync(string name) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name } + }); + } + + public virtual async Task> GetListAsync(WebhookGroupDefinitionGetListInput input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookGroupDefinitionGetListInput), input } + }); + } + + public virtual async Task UpdateAsync(string name, WebhookGroupDefinitionUpdateDto input) + { + return await RequestAsync(nameof(UpdateAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name }, + { typeof(WebhookGroupDefinitionUpdateDto), input } + }); + } +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.cs new file mode 100644 index 000000000..1f5e835be --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of WebhookGroupDefinitionClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement.Definitions; + +public partial class WebhookGroupDefinitionClientProxy +{ +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.Generated.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.Generated.cs new file mode 100644 index 000000000..753ad4a8e --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.Generated.cs @@ -0,0 +1,29 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.WebhooksManagement; +using LINGYUN.Abp.WebhooksManagement.Integration; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement.Integration; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IWebhookPublishIntegrationService), typeof(WebhookPublishIntegrationClientProxy))] +[IntegrationService] +public partial class WebhookPublishIntegrationClientProxy : ClientProxyBase, IWebhookPublishIntegrationService +{ + public virtual async Task PublishAsync(WebhookPublishInput input) + { + await RequestAsync(nameof(PublishAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookPublishInput), input } + }); + } +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.cs new file mode 100644 index 000000000..a1200c16c --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of WebhookPublishIntegrationClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement.Integration; + +public partial class WebhookPublishIntegrationClientProxy +{ +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.Generated.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.Generated.cs new file mode 100644 index 000000000..b45a864ce --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.Generated.cs @@ -0,0 +1,27 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.WebhooksManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IWebhookPublishAppService), typeof(WebhookPublishClientProxy))] +public partial class WebhookPublishClientProxy : ClientProxyBase, IWebhookPublishAppService +{ + public virtual async Task PublishAsync(WebhookPublishInput input) + { + await RequestAsync(nameof(PublishAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookPublishInput), input } + }); + } +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.cs new file mode 100644 index 000000000..93d71eb2a --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookPublishClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of WebhookPublishClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement; + +public partial class WebhookPublishClientProxy +{ +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.Generated.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.Generated.cs new file mode 100644 index 000000000..9d6613197 --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.Generated.cs @@ -0,0 +1,67 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.WebhooksManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IWebhookSendRecordAppService), typeof(WebhookSendRecordClientProxy))] +public partial class WebhookSendRecordClientProxy : ClientProxyBase, IWebhookSendRecordAppService +{ + public virtual async Task GetAsync(Guid id) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task DeleteAsync(Guid id) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task DeleteManyAsync(WebhookSendRecordDeleteManyInput input) + { + await RequestAsync(nameof(DeleteManyAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookSendRecordDeleteManyInput), input } + }); + } + + public virtual async Task> GetListAsync(WebhookSendRecordGetListInput input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookSendRecordGetListInput), input } + }); + } + + public virtual async Task ResendAsync(Guid id) + { + await RequestAsync(nameof(ResendAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task ResendManyAsync(WebhookSendRecordResendManyInput input) + { + await RequestAsync(nameof(ResendManyAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookSendRecordResendManyInput), input } + }); + } +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.cs new file mode 100644 index 000000000..0a2b1b17d --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of WebhookSendRecordClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement; + +public partial class WebhookSendRecordClientProxy +{ +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.Generated.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.Generated.cs new file mode 100644 index 000000000..eef75887e --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.Generated.cs @@ -0,0 +1,73 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.WebhooksManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IWebhookSubscriptionAppService), typeof(WebhookSubscriptionClientProxy))] +public partial class WebhookSubscriptionClientProxy : ClientProxyBase, IWebhookSubscriptionAppService +{ + public virtual async Task CreateAsync(WebhookSubscriptionCreateInput input) + { + return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookSubscriptionCreateInput), input } + }); + } + + public virtual async Task DeleteAsync(Guid id) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task DeleteManyAsync(WebhookSubscriptionDeleteManyInput input) + { + await RequestAsync(nameof(DeleteManyAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookSubscriptionDeleteManyInput), input } + }); + } + + public virtual async Task GetAsync(Guid id) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task> GetListAsync(WebhookSubscriptionGetListInput input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(WebhookSubscriptionGetListInput), input } + }); + } + + public virtual async Task UpdateAsync(Guid id, WebhookSubscriptionUpdateInput input) + { + return await RequestAsync(nameof(UpdateAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id }, + { typeof(WebhookSubscriptionUpdateInput), input } + }); + } + + public virtual async Task> GetAllAvailableWebhooksAsync() + { + return await RequestAsync>(nameof(GetAllAvailableWebhooksAsync)); + } +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.cs new file mode 100644 index 000000000..a301c50c1 --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/WebhooksManagement/WebhookSubscriptionClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of WebhookSubscriptionClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.WebhooksManagement; + +public partial class WebhookSubscriptionClientProxy +{ +} diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/webhooks-management-generate-proxy.json b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/webhooks-management-generate-proxy.json new file mode 100644 index 000000000..641500e03 --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/ClientProxies/webhooks-management-generate-proxy.json @@ -0,0 +1,1774 @@ +{ + "modules": { + "webhooks-management": { + "rootPath": "webhooks-management", + "remoteServiceName": "WebhooksManagement", + "controllers": { + "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionController": { + "controllerName": "WebhookDefinition", + "controllerGroupName": "WebhookDefinition", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionController", + "interfaces": [ + { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookDefinitionAppService", + "name": "IWebhookDefinitionAppService", + "methods": [ + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "CreateAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto" + } + }, + { + "name": "UpdateAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + }, + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + } + ] + } + ], + "actions": { + "CreateAsyncByInput": { + "uniqueName": "CreateAsyncByInput", + "name": "CreateAsync", + "httpMethod": "POST", + "url": "api/webhooks/definitions", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionCreateDto", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookDefinitionAppService" + }, + "DeleteAsyncByName": { + "uniqueName": "DeleteAsyncByName", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/webhooks/definitions/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookDefinitionAppService" + }, + "GetAsyncByName": { + "uniqueName": "GetAsyncByName", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/webhooks/definitions/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookDefinitionAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/webhooks/definitions", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Filter", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "GroupName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookDefinitionAppService" + }, + "UpdateAsyncByNameAndInput": { + "uniqueName": "UpdateAsyncByNameAndInput", + "name": "UpdateAsync", + "httpMethod": "PUT", + "url": "api/webhooks/definitions/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + }, + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + }, + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookDefinitionUpdateDto", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.Dto.WebhookDefinitionDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookDefinitionAppService" + } + } + }, + "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionController": { + "controllerName": "WebhookGroupDefinition", + "controllerGroupName": "WebhookGroupDefinition", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionController", + "interfaces": [ + { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookGroupDefinitionAppService", + "name": "IWebhookGroupDefinitionAppService", + "methods": [ + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "CreateAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto" + } + }, + { + "name": "UpdateAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + }, + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + } + ] + } + ], + "actions": { + "CreateAsyncByInput": { + "uniqueName": "CreateAsyncByInput", + "name": "CreateAsync", + "httpMethod": "POST", + "url": "api/webhooks/definitions/groups", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionCreateDto", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookGroupDefinitionAppService" + }, + "DeleteAsyncByName": { + "uniqueName": "DeleteAsyncByName", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/webhooks/definitions/groups/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookGroupDefinitionAppService" + }, + "GetAsyncByName": { + "uniqueName": "GetAsyncByName", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/webhooks/definitions/groups/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookGroupDefinitionAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/webhooks/definitions/groups", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Filter", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookGroupDefinitionAppService" + }, + "UpdateAsyncByNameAndInput": { + "uniqueName": "UpdateAsyncByNameAndInput", + "name": "UpdateAsync", + "httpMethod": "PUT", + "url": "api/webhooks/definitions/groups/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + }, + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + }, + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionUpdateDto", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.Definitions.WebhookGroupDefinitionDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Definitions.IWebhookGroupDefinitionAppService" + } + } + }, + "LINGYUN.Abp.WebhooksManagement.Integration.WebhookPublishIntegrationController": { + "controllerName": "WebhookPublishIntegration", + "controllerGroupName": "WebhookPublishIntegration", + "isRemoteService": true, + "isIntegrationService": true, + "apiVersion": null, + "type": "LINGYUN.Abp.WebhooksManagement.Integration.WebhookPublishIntegrationController", + "interfaces": [ + { + "type": "LINGYUN.Abp.WebhooksManagement.Integration.IWebhookPublishIntegrationService", + "name": "IWebhookPublishIntegrationService", + "methods": [ + { + "name": "PublishAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "PublishAsyncByInput": { + "uniqueName": "PublishAsyncByInput", + "name": "PublishAsync", + "httpMethod": "POST", + "url": "integration-api/webhooks-management/webhooks/publish", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.Integration.IWebhookPublishIntegrationService" + } + } + }, + "LINGYUN.Abp.WebhooksManagement.WebhookPublishController": { + "controllerName": "WebhookPublish", + "controllerGroupName": "WebhookPublish", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookPublishController", + "interfaces": [ + { + "type": "LINGYUN.Abp.WebhooksManagement.IWebhookPublishAppService", + "name": "IWebhookPublishAppService", + "methods": [ + { + "name": "PublishAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "PublishAsyncByInput": { + "uniqueName": "PublishAsyncByInput", + "name": "PublishAsync", + "httpMethod": "POST", + "url": "api/webhooks/publish", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookPublishInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookPublishAppService" + } + } + }, + "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordController": { + "controllerName": "WebhookSendRecord", + "controllerGroupName": "WebhookSendRecord", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordController", + "interfaces": [ + { + "type": "LINGYUN.Abp.WebhooksManagement.IWebhookSendRecordAppService", + "name": "IWebhookSendRecordAppService", + "methods": [ + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "DeleteManyAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "ResendAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "ResendManyAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + } + } + ] + } + ], + "actions": { + "GetAsyncById": { + "uniqueName": "GetAsyncById", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/webhooks/send-attempts/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSendRecordAppService" + }, + "DeleteAsyncById": { + "uniqueName": "DeleteAsyncById", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/webhooks/send-attempts/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSendRecordAppService" + }, + "DeleteManyAsyncByInput": { + "uniqueName": "DeleteManyAsyncByInput", + "name": "DeleteManyAsync", + "httpMethod": "DELETE", + "url": "api/webhooks/send-attempts/delete-many", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordDeleteManyInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSendRecordAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/webhooks/send-attempts", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Filter", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TenantId", + "jsonName": null, + "type": "System.Guid?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "State", + "jsonName": null, + "type": "System.Boolean?", + "typeSimple": "boolean?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "WebhookEventId", + "jsonName": null, + "type": "System.Guid?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SubscriptionId", + "jsonName": null, + "type": "System.Guid?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ResponseStatusCode", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "BeginCreationTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EndCreationTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSendRecordAppService" + }, + "ResendAsyncById": { + "uniqueName": "ResendAsyncById", + "name": "ResendAsync", + "httpMethod": "POST", + "url": "api/webhooks/send-attempts/{id}/resend", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSendRecordAppService" + }, + "ResendManyAsyncByInput": { + "uniqueName": "ResendManyAsyncByInput", + "name": "ResendManyAsync", + "httpMethod": "POST", + "url": "api/webhooks/send-attempts/resend-many", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSendRecordResendManyInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSendRecordAppService" + } + } + }, + "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionController": { + "controllerName": "WebhookSubscription", + "controllerGroupName": "WebhookSubscription", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionController", + "interfaces": [ + { + "type": "LINGYUN.Abp.WebhooksManagement.IWebhookSubscriptionAppService", + "name": "IWebhookSubscriptionAppService", + "methods": [ + { + "name": "DeleteManyAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "GetAllAvailableWebhooksAsync", + "parametersOnMethod": [], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + } + }, + { + "name": "CreateAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto" + } + }, + { + "name": "UpdateAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + }, + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "CreateAsyncByInput": { + "uniqueName": "CreateAsyncByInput", + "name": "CreateAsync", + "httpMethod": "POST", + "url": "api/webhooks/subscriptions", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionCreateInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto" + }, + "allowAnonymous": false, + "implementFrom": "Volo.Abp.Application.Services.ICreateAppService" + }, + "DeleteAsyncById": { + "uniqueName": "DeleteAsyncById", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/webhooks/subscriptions/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "Volo.Abp.Application.Services.IDeleteAppService" + }, + "DeleteManyAsyncByInput": { + "uniqueName": "DeleteManyAsyncByInput", + "name": "DeleteManyAsync", + "httpMethod": "DELETE", + "url": "api/webhooks/subscriptions/delete-many", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDeleteManyInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSubscriptionAppService" + }, + "GetAsyncById": { + "uniqueName": "GetAsyncById", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/webhooks/subscriptions/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto" + }, + "allowAnonymous": false, + "implementFrom": "Volo.Abp.Application.Services.IReadOnlyAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/webhooks/subscriptions", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionGetListInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionGetListInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionGetListInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Filter", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TenantId", + "jsonName": null, + "type": "System.Guid?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "WebhookUri", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Secret", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "IsActive", + "jsonName": null, + "type": "System.Boolean?", + "typeSimple": "boolean?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Webhooks", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "BeginCreationTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EndCreationTime", + "jsonName": null, + "type": "System.DateTime?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.PagedResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto" + }, + "allowAnonymous": false, + "implementFrom": "Volo.Abp.Application.Services.IReadOnlyAppService" + }, + "UpdateAsyncByIdAndInput": { + "uniqueName": "UpdateAsyncByIdAndInput", + "name": "UpdateAsync", + "httpMethod": "PUT", + "url": "api/webhooks/subscriptions/{id}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "id", + "typeAsString": "System.Guid, System.Private.CoreLib", + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + }, + { + "name": "input", + "typeAsString": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput, LINGYUN.Abp.WebhooksManagement.Application.Contracts", + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "id", + "name": "id", + "jsonName": null, + "type": "System.Guid", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + }, + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionUpdateInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto", + "typeSimple": "LINGYUN.Abp.WebhooksManagement.WebhookSubscriptionDto" + }, + "allowAnonymous": false, + "implementFrom": "Volo.Abp.Application.Services.IUpdateAppService" + }, + "GetAllAvailableWebhooksAsync": { + "uniqueName": "GetAllAvailableWebhooksAsync", + "name": "GetAllAvailableWebhooksAsync", + "httpMethod": "GET", + "url": "api/webhooks/subscriptions/availables", + "supportedVersions": [], + "parametersOnMethod": [], + "parameters": [], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.WebhooksManagement.IWebhookSubscriptionAppService" + } + } + } + } + } + }, + "types": {} +} \ No newline at end of file diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN.Abp.WebhooksManagement.HttpApi.Client.csproj b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN.Abp.WebhooksManagement.HttpApi.Client.csproj index 95f1891bf..e9bf18518 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN.Abp.WebhooksManagement.HttpApi.Client.csproj +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN.Abp.WebhooksManagement.HttpApi.Client.csproj @@ -13,6 +13,14 @@ + + + + + + + + diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN/Abp/WebhooksManagement/WebhooksManagementHttpApiClientModule.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN/Abp/WebhooksManagement/WebhooksManagementHttpApiClientModule.cs index 1fff62168..96b75b4dd 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN/Abp/WebhooksManagement/WebhooksManagementHttpApiClientModule.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi.Client/LINGYUN/Abp/WebhooksManagement/WebhooksManagementHttpApiClientModule.cs @@ -11,7 +11,7 @@ public class WebhooksManagementHttpApiClientModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { - context.Services.AddHttpClientProxies( + context.Services.AddStaticHttpClientProxies( typeof(WebhooksManagementApplicationContractsModule).Assembly, WebhooksManagementRemoteServiceConsts.RemoteServiceName); } diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionController.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionController.cs index 18fc573b5..41426b74c 100644 --- a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionController.cs +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Definitions/WebhookGroupDefinitionController.cs @@ -30,9 +30,9 @@ public class WebhookGroupDefinitionController : WebhooksManagementControllerBase [HttpDelete] [Route("{name}")] [Authorize(WebhooksManagementPermissions.WebhookGroupDefinition.Delete)] - public virtual Task DeleteAysnc(string name) + public virtual Task DeleteAsync(string name) { - return _service.DeleteAysnc(name); + return _service.DeleteAsync(name); } [HttpGet] diff --git a/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationController.cs b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationController.cs new file mode 100644 index 000000000..36d26c89b --- /dev/null +++ b/aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.HttpApi/LINGYUN/Abp/WebhooksManagement/Integration/WebhookPublishIntegrationController.cs @@ -0,0 +1,26 @@ +using Asp.Versioning; +using Microsoft.AspNetCore.Mvc; +using System.Threading.Tasks; +using Volo.Abp; + +namespace LINGYUN.Abp.WebhooksManagement.Integration; + +[Area(WebhooksManagementRemoteServiceConsts.ModuleName)] +[ControllerName("WebhookPublishIntegration")] +[RemoteService(Name = WebhooksManagementRemoteServiceConsts.RemoteServiceName)] +[Route($"integration-api/{WebhooksManagementRemoteServiceConsts.ModuleName}/webhooks/publish")] +public class WebhookPublishIntegrationController : WebhooksManagementControllerBase, IWebhookPublishIntegrationService +{ + protected IWebhookPublishIntegrationService PublishAppService { get; } + + public WebhookPublishIntegrationController(IWebhookPublishIntegrationService publishAppService) + { + PublishAppService = publishAppService; + } + + [HttpPost] + public virtual Task PublishAsync(WebhookPublishInput input) + { + return PublishAppService.PublishAsync(input); + } +}