feat(IM): support both websocket/webhook mode im channel for slack

Signed-off-by: joeyczheng <joeyczheng@tencent.com>
This commit is contained in:
joeyczheng
2026-03-18 17:25:06 +08:00
committed by lyingbug
parent 5c6b710bae
commit 49b5f1a739
13 changed files with 592 additions and 15 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ func (h *IMHandler) CreateIMChannel(c *gin.Context) {
return
}
if req.Platform != "wecom" && req.Platform != "feishu" {
c.JSON(http.StatusBadRequest, gin.H{"error": "platform must be 'wecom' or 'feishu'"})
if req.Platform != "wecom" && req.Platform != "feishu" && req.Platform != "slack" {
c.JSON(http.StatusBadRequest, gin.H{"error": "platform must be 'wecom', 'feishu' or 'slack'"})
return
}