Class FeishuNotificationService
java.lang.Object
com.bytedesk.core.webhook.channel.FeishuNotificationService
飞书通知服务
提供各种业务场景的通知功能
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FeishuWebhookService
private String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendChatShare
(String chatId, String description) 发送群名片分享void
sendDailyReport
(Map<String, Object> reportData) 发送每日报告void
sendImageNotification
(String imageKey, String caption) 发送图片通知void
sendProjectUpdate
(String projectName, String version, String changes, String releaseUrl) 发送项目更新通知void
sendSecureNotification
(String message) 发送带签名的安全通知void
sendSystemAlert
(String level, String message, String[] atUsers) 发送系统告警void
sendUserActivityNotification
(String userId, String userName, String action, String details) 发送用户活动通知
-
Field Details
-
feishuWebhookPush
-
webhookUrl
-
webhookSecret
-
-
Constructor Details
-
FeishuNotificationService
public FeishuNotificationService()
-
-
Method Details
-
sendSystemAlert
发送系统告警- Parameters:
level
- 告警级别 (ERROR, WARN, INFO)message
- 告警消息atUsers
- 需要@的用户ID列表
-
sendProjectUpdate
public void sendProjectUpdate(String projectName, String version, String changes, String releaseUrl) 发送项目更新通知- Parameters:
projectName
- 项目名称version
- 版本号changes
- 更新内容releaseUrl
- 发布链接
-
sendDailyReport
发送每日报告- Parameters:
reportData
- 报告数据
-
sendUserActivityNotification
public void sendUserActivityNotification(String userId, String userName, String action, String details) 发送用户活动通知- Parameters:
userId
- 用户IDuserName
- 用户名称action
- 活动类型details
- 详细信息
-
sendSecureNotification
发送带签名的安全通知- Parameters:
message
- 消息内容
-
sendImageNotification
发送图片通知- Parameters:
imageKey
- 图片keycaption
- 图片说明
-