这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
feijie 46913253ee feat(docs): 添加webhooks模块文档 1 year ago
..
LINGYUN/Abp/WebhooksManagement upgrade abp framework to 8.2.0 2 years ago
System/Linq/Expressions Enhanced commit 3 years ago
FodyWeavers.xml feat(webhooks): added support webhooks. 4 years ago
FodyWeavers.xsd feat(webhooks): added support webhooks. 4 years ago
LINGYUN.Abp.WebhooksManagement.Application.csproj upgrade abp framework to 8.2.0 2 years ago
README.EN.md feat(docs): 添加webhooks模块文档 1 year ago
README.md feat(docs): 添加webhooks模块文档 1 year ago

README.md

LINGYUN.Abp.WebhooksManagement.Application

Webhook管理应用服务模块,提供Webhook管理的应用层实现。

English

功能特性

  • Webhook订阅管理
  • Webhook组管理
  • Webhook定义管理
  • Webhook日志查询
  • Webhook权限管理

模块引用

[DependsOn(typeof(AbpWebhooksManagementApplicationModule))]
public class YouProjectModule : AbpModule
{
  // other
}

权限定义

  • WebhooksManagement.Webhooks
    • WebhooksManagement.Webhooks.Create
    • WebhooksManagement.Webhooks.Update
    • WebhooksManagement.Webhooks.Delete
    • WebhooksManagement.Webhooks.ManagePermissions
  • WebhooksManagement.Groups
    • WebhooksManagement.Groups.Create
    • WebhooksManagement.Groups.Update
    • WebhooksManagement.Groups.Delete
  • WebhooksManagement.Subscriptions
    • WebhooksManagement.Subscriptions.Create
    • WebhooksManagement.Subscriptions.Update
    • WebhooksManagement.Subscriptions.Delete
  • WebhooksManagement.Logs
    • WebhooksManagement.Logs.Default

基本用法

  1. 管理Webhook订阅
public class YourService
{
    private readonly IWebhookSubscriptionAppService _webhookSubscriptionAppService;

    public YourService(IWebhookSubscriptionAppService webhookSubscriptionAppService)
    {
        _webhookSubscriptionAppService = webhookSubscriptionAppService;
    }

    public async Task ManageSubscription()
    {
        // 创建订阅
        await _webhookSubscriptionAppService.CreateAsync(new WebhookSubscriptionCreateDto
        {
            WebhookUri = "https://your-webhook-endpoint",
            Webhooks = new[] { "YourWebhook" }
        });

        // 查询订阅
        var subscriptions = await _webhookSubscriptionAppService.GetListAsync(
            new WebhookSubscriptionGetListInput());
    }
}
  1. 查询Webhook日志
public class YourService
{
    private readonly IWebhookSendAttemptAppService _webhookSendAttemptAppService;

    public YourService(IWebhookSendAttemptAppService webhookSendAttemptAppService)
    {
        _webhookSendAttemptAppService = webhookSendAttemptAppService;
    }

    public async Task QueryLogs()
    {
        var logs = await _webhookSendAttemptAppService.GetListAsync(
            new WebhookSendAttemptGetListInput());
    }
}