From 83a8944fcf64af9bf5b0a4e233f9a7f917838a4d Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 12 Feb 2020 16:48:28 +0800 Subject: Add feishu webhook support (#10229) Add feishu webhook support --- models/webhook.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'models') diff --git a/models/webhook.go b/models/webhook.go index 55f58c64a1..626489b342 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -445,6 +445,7 @@ const ( DINGTALK TELEGRAM MSTEAMS + FEISHU ) var hookTaskTypes = map[string]HookTaskType{ @@ -455,6 +456,7 @@ var hookTaskTypes = map[string]HookTaskType{ "dingtalk": DINGTALK, "telegram": TELEGRAM, "msteams": MSTEAMS, + "feishu": FEISHU, } // ToHookTaskType returns HookTaskType by given name. @@ -479,6 +481,8 @@ func (t HookTaskType) Name() string { return "telegram" case MSTEAMS: return "msteams" + case FEISHU: + return "feishu" } return "" } -- cgit v1.2.3