From 430e07b7d0d633d8fa19aa30feed78bec587d6d7 Mon Sep 17 00:00:00 2001 From: Sinh Date: Thu, 12 Oct 2023 15:43:49 +0700 Subject: [PATCH] add webhook model --- model/common_request.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model/common_request.go b/model/common_request.go index a36f30c..9a12285 100644 --- a/model/common_request.go +++ b/model/common_request.go @@ -49,3 +49,8 @@ type UpdatePayload struct { Payload interface{} `json:"payload"` Opts []*options.UpdateOptions `json:"opts"` } + +type WebhookPayloadV2 struct { + Path string `json:"path"` // request URL path from external + Data string `json:"data"` // request body +}