fusenapi/server_api/feishu-sync.api
laodaming 03af6aa70e fix
2023-11-06 18:25:37 +08:00

24 lines
655 B
Plaintext

syntax = "v1"
info (
title: "飞书同步服务"// TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
service feishu-sync {
//飞书ticket webhook事件接口
@handler WebhookHandler
post /api/feishu/webhook(WebhookReq) returns (response);
}
type WebhookReq {
Schema string `json:"schema"`
Header map[string]interface{} `json:"header"`
Event map[string]interface{} `json:"event"`
Challenge string `json:"challenge,optional"` //设置飞书通知接口验证用
Type string `json:"type,optional"` //设置飞书通知接口验证用
}