namespace Model.Dto.Inspection
{
///
/// 跨网发件箱拉取结果 DTO(AlertBridge 拉取到的待推送项;Payload 自包含全部推送要素)
///
public class AlertOutboxItemDto
{
/// 发件箱 Id(回写结果时使用)
public string? Id { get; set; }
/// 告警消息Id
public string? AlertId { get; set; }
/// 渠道Id
public string? ChannelId { get; set; }
/// 完整推送报文 JSON(AlertOutboxPayload 序列化)
public string? Payload { get; set; }
/// 重试次数
public int RetryCount { get; set; }
}
///
/// 发件箱推送报文(自包含:AlertBridge 无需访问数据库/配置即可推送)
///
public class AlertOutboxPayload
{
/// 渠道类型(1飞书/2钉钉/3企微)
public int ChannelType { get; set; }
/// Webhook 地址
public string? WebhookUrl { get; set; }
/// 加签密钥(可空)
public string? Secret { get; set; }
/// 消息标题
public string? Title { get; set; }
/// 消息正文(markdown)
public string? Content { get; set; }
/// @ 手机号列表
public List? AtMobiles { get; set; }
}
///
/// 发件箱结果回写 DTO(AlertBridge 推送完成后回写)
///
public class OutboxResultDto
{
/// 是否成功
public bool Success { get; set; }
/// 结果信息(失败原因)
public string? ResultMsg { get; set; }
}
}