29 lines
642 B
Plaintext
29 lines
642 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: "飞书同步服务"// TODO: add title
|
|
desc: // TODO: add description
|
|
author: ""
|
|
email: ""
|
|
)
|
|
|
|
import "basic.api"
|
|
|
|
service feishu-sync {
|
|
//飞书ticket webhook事件接口
|
|
@handler TicketWebhookHandler
|
|
post /api/feishu/ticket_webhook (TicketWebhookReq) returns (response);
|
|
}
|
|
|
|
type TicketWebhookReq {
|
|
Ts string `json:"ts"` //webhook时间
|
|
Uuid string `json:"uuid"` //事件唯一标识
|
|
Token string `json:"token"` //即Verification Token
|
|
Event Event `json:"event"` //事件
|
|
}
|
|
|
|
type Event {
|
|
AppId string `json:"app_id"`
|
|
AppTicket string `json:"app_ticket"`
|
|
Type string `json:"type"`
|
|
} |