This commit is contained in:
laodaming
2023-11-07 10:16:20 +08:00
parent be7823cfba
commit 975469e190
4 changed files with 45 additions and 58 deletions

View File

@@ -12,13 +12,5 @@ import "basic.api"
service feishu-sync {
//飞书ticket webhook事件接口
@handler WebhookHandler
post /api/feishu/webhook(WebhookReq) returns (response);
}
type WebhookReq {
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"` //设置飞书通知接口验证用
post /api/feishu/webhook(request) returns (response);
}