25 lines
825 B
Plaintext
25 lines
825 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 {
|
|
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"` //设置飞书通知接口验证用
|
|
} |