Class FeishuNotificationService

java.lang.Object
com.bytedesk.core.webhook.channel.FeishuNotificationService

@Service public class FeishuNotificationService extends Object
飞书通知服务 提供各种业务场景的通知功能
  • Field Details

    • feishuWebhookPush

      private final FeishuWebhookService feishuWebhookPush
    • webhookUrl

      @Value("${feishu.webhook.url:}") private String webhookUrl
    • webhookSecret

      @Value("${feishu.webhook.secret:}") private String webhookSecret
  • Constructor Details

    • FeishuNotificationService

      public FeishuNotificationService()
  • Method Details

    • sendSystemAlert

      public void sendSystemAlert(String level, String message, String[] atUsers)
      发送系统告警
      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

      public void sendDailyReport(Map<String,Object> reportData)
      发送每日报告
      Parameters:
      reportData - 报告数据
    • sendUserActivityNotification

      public void sendUserActivityNotification(String userId, String userName, String action, String details)
      发送用户活动通知
      Parameters:
      userId - 用户ID
      userName - 用户名称
      action - 活动类型
      details - 详细信息
    • sendSecureNotification

      public void sendSecureNotification(String message)
      发送带签名的安全通知
      Parameters:
      message - 消息内容
    • sendImageNotification

      public void sendImageNotification(String imageKey, String caption)
      发送图片通知
      Parameters:
      imageKey - 图片key
      caption - 图片说明
    • sendChatShare

      public void sendChatShare(String chatId, String description)
      发送群名片分享
      Parameters:
      chatId - 群ID
      description - 分享说明