From b1cd37497cbeaa0aadc050d42cdfc4f07afdcd7f Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 6 Nov 2023 18:29:11 +0800 Subject: [PATCH] fix --- server/feishu-sync/internal/types/types.go | 6 +++--- server_api/feishu-sync.api | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/feishu-sync/internal/types/types.go b/server/feishu-sync/internal/types/types.go index 29b2d3a6..18135772 100644 --- a/server/feishu-sync/internal/types/types.go +++ b/server/feishu-sync/internal/types/types.go @@ -6,9 +6,9 @@ import ( ) type WebhookReq struct { - Schema string `json:"schema"` - Header map[string]interface{} `json:"header"` - Event map[string]interface{} `json:"event"` + Schema string `json:"schema,optional"` + Header map[string]interface{} `json:"header,optional"` + Event map[string]interface{} `json:"event,optional"` Challenge string `json:"challenge,optional"` //设置飞书通知接口验证用 Type string `json:"type,optional"` //设置飞书通知接口验证用 } diff --git a/server_api/feishu-sync.api b/server_api/feishu-sync.api index 94edbfd8..4fa8dd8d 100644 --- a/server_api/feishu-sync.api +++ b/server_api/feishu-sync.api @@ -16,9 +16,9 @@ service feishu-sync { } type WebhookReq { - Schema string `json:"schema"` - Header map[string]interface{} `json:"header"` - Event map[string]interface{} `json:"event"` + Schema string `json:"schema,optional"` + Header map[string]interface{} `json:"header,optional"` + Event map[string]interface{} `json:"event,optional"` Challenge string `json:"challenge,optional"` //设置飞书通知接口验证用 Type string `json:"type,optional"` //设置飞书通知接口验证用 } \ No newline at end of file