fix
This commit is contained in:
@@ -11,21 +11,15 @@ import "basic.api"
|
||||
|
||||
service feishu-sync {
|
||||
//飞书ticket webhook事件接口
|
||||
@handler TicketWebhookHandler
|
||||
post /api/feishu/ticket_webhook (TicketWebhookReq) returns (response);
|
||||
@handler WebhookHandler
|
||||
post /api/feishu/webhook (WebhookReq) returns (response);
|
||||
}
|
||||
|
||||
type TicketWebhookReq {
|
||||
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"` //设置飞书通知接口验证用
|
||||
}
|
||||
|
||||
type Event {
|
||||
AppId string `json:"app_id"`
|
||||
AppTicket string `json:"app_ticket"`
|
||||
Type string `json:"type"`
|
||||
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"` //设置飞书通知接口验证用
|
||||
}
|
||||
Reference in New Issue
Block a user