fusenapi/server_api/feishu-sync.api

25 lines
825 B
Plaintext
Raw Normal View History

2023-11-06 03:46:10 +00:00
syntax = "v1"
info (
title: "飞书同步服务"// TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
2023-11-06 06:09:40 +00:00
service feishu-sync {
//飞书ticket webhook事件接口
2023-11-06 07:17:29 +00:00
@handler WebhookHandler
post /api/feishu/webhook (WebhookReq) returns (response);
2023-11-06 06:09:40 +00:00
}
2023-11-06 07:17:29 +00:00
type WebhookReq {
Ts string `json:"ts,optional"` //webhook时间
Uuid string `json:"uuid,optional"` //事件唯一标识
Token string `json:"token,optional"` //即Verification Token
Event map[string]interface{} `json:"event,optional"` //事件
Challenge string `json:"challenge,optional"` //设置飞书通知接口验证用
Type string `json:"type,optional"` //设置飞书通知接口验证用
2023-11-06 06:09:40 +00:00
}