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