using Model; using Model.Dto.Inspection; using Model.Entity.Inspection; using Model.Mapper; using SqlSugar; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Service.Interface { /// /// 消息告警 服务接口(告警列表/闭环操作/统计分析) /// public interface IAlertMessageService { /// /// 分页查询告警(支持级别/状态/类型/来源/设备/关键字/时间范围筛选) /// Task>> GetPagedAsync(int pageIndex, int pageSize, RefAsync total, AlertLevelEnum? level, AlertStatusEnum? status, AlertTypeEnum? type, AlertSourceEnum? source, string? deviceCode, string? keyword, DateTime? startDate, DateTime? endDate); /// /// 告警详情 /// Task> GetByIdAsync(long id); /// /// 确认告警 /// Task> AcknowledgeAsync(long id, AlertOperateDto dto); /// /// 处理告警 /// Task> HandleAsync(long id, AlertOperateDto dto); /// /// 关闭告警 /// Task> CloseAsync(long id, AlertOperateDto dto); /// /// 忽略告警 /// Task> IgnoreAsync(long id, AlertOperateDto dto); /// /// 转工单(一期仅变更状态并记录 WorkOrderId,工单模块二期对接) /// Task> ToWorkOrderAsync(long id, AlertOperateDto dto); /// /// 告警概览(列表页顶部卡片) /// Task> GetOverviewAsync(); /// /// 趋势统计(granularity:day/week/month) /// Task>> GetTrendAsync(string granularity, DateTime? startDate, DateTime? endDate); /// /// 分布统计(dimension:device/type/level/source) /// Task>> GetDistributionAsync(string dimension, DateTime? startDate, DateTime? endDate); /// /// 高频告警 TOP 排名 /// Task>> GetTopAsync(int topN, DateTime? startDate, DateTime? endDate); /// /// 处理及时率统计 /// Task> GetTimelinessAsync(DateTime? startDate, DateTime? endDate); } }