This commit is contained in:
laodaming
2023-11-06 14:09:40 +08:00
parent 005589007e
commit ebb7354d23
9 changed files with 293 additions and 0 deletions

View File

@@ -9,3 +9,21 @@ info (
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"`
}