feat: add sql database methods for webhook

This commit is contained in:
Lakhan Samani
2022-07-09 11:21:32 +05:30
parent 0ffb3f67f1
commit e8eb62769e
8 changed files with 78 additions and 18 deletions

View File

@@ -50,8 +50,8 @@ type Provider interface {
ListWebhook(pagination model.Pagination) (*model.Webhooks, error)
// GetWebhookByID to get webhook by id
GetWebhookByID(webhookID string) (models.Webhook, error)
// GetWebhookByEvent to get webhook by event_name
GetWebhookByEvent(eventName string) (models.Webhook, error)
// GetWebhookByEventName to get webhook by event_name
GetWebhookByEventName(eventName string) (models.Webhook, error)
// DeleteWebhook to delete webhook
DeleteWebhook(webhookID string) error