fusenapi/server_api/feishu-sync.api

31 lines
874 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事件接口
@handler TicketWebhookHandler
post /api/feishu/ticket_webhook (TicketWebhookReq) returns (response);
}
type TicketWebhookReq {
2023-11-06 07:00:39 +00:00
Ts string `json:"ts,optional"` //webhook时间
Uuid string `json:"uuid,optional"` //事件唯一标识
Token string `json:"token,optional"` //即Verification Token
Event Event `json:"event,optional"` //事件
Challenge string `json:"challenge,optional"` //设置飞书通知接口验证用
Type string `json:"type,optional"` //设置飞书通知接口验证用
2023-11-06 06:09:40 +00:00
}
type Event {
AppId string `json:"app_id"`
AppTicket string `json:"app_ticket"`
Type string `json:"type"`
}