From 8c175ad9cc9d844ebdbb574d4799e402f50deddc Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 6 Nov 2023 15:00:39 +0800 Subject: [PATCH] fix --- server/feishu-sync/internal/types/types.go | 12 ++++++------ server_api/feishu-sync.api | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/server/feishu-sync/internal/types/types.go b/server/feishu-sync/internal/types/types.go index 089ebe5b..f6afbdfe 100644 --- a/server/feishu-sync/internal/types/types.go +++ b/server/feishu-sync/internal/types/types.go @@ -6,12 +6,12 @@ import ( ) type TicketWebhookReq struct { - Ts string `json:"ts"` //webhook时间 - Uuid string `json:"uuid"` //事件唯一标识 - Token string `json:"token"` //即Verification Token - Event Event `json:"event"` //事件 - Challenge string `json:"challenge"` //设置飞书通知接口验证用 - Type string `json:"type"` //设置飞书通知接口验证用 + Ts string `json:"ts,optional"` //webhook时间 + Uuid string `json:"uuid,optional"` //事件唯一标识 + Token string `json:"token,optional"` //即Verification Token + Event Event `json:"event,optional"` //事件 + Challenge string `json:"challenge,optional"` //设置飞书通知接口验证用 + Type string `json:"type,optional"` //设置飞书通知接口验证用 } type Event struct { diff --git a/server_api/feishu-sync.api b/server_api/feishu-sync.api index f1f8e3c6..06db1f9f 100644 --- a/server_api/feishu-sync.api +++ b/server_api/feishu-sync.api @@ -16,12 +16,12 @@ service feishu-sync { } type TicketWebhookReq { - Ts string `json:"ts"` //webhook时间 - Uuid string `json:"uuid"` //事件唯一标识 - Token string `json:"token"` //即Verification Token - Event Event `json:"event"` //事件 - Challenge string `json:"challenge"` //设置飞书通知接口验证用 - Type string `json:"type"` //设置飞书通知接口验证用 + Ts string `json:"ts,optional"` //webhook时间 + Uuid string `json:"uuid,optional"` //事件唯一标识 + Token string `json:"token,optional"` //即Verification Token + Event Event `json:"event,optional"` //事件 + Challenge string `json:"challenge,optional"` //设置飞书通知接口验证用 + Type string `json:"type,optional"` //设置飞书通知接口验证用 } type Event {