using Model; using Model.Dto.Inspection; using Model.Entity.Inspection; using System.Collections.Generic; using System.Threading.Tasks; namespace Service.Interface { /// /// 告警规则 服务接口(规则实例:查看所有设备告警的规则列表) /// public interface IAlertRuleService { /// /// 获取全部告警规则列表 /// Task>> GetListAsync(); /// /// 新增告警规则(前端传 DTO,Id 为 string) /// Task AddAsync(AlertRuleDto dto); /// /// 修改告警规则(前端传 DTO,Id 为 string) /// Task UpdateAsync(AlertRuleDto dto); /// /// 删除告警规则(软删除) /// Task DeleteAsync(long id); /// /// 启用/停用告警规则 /// Task SetEnabledAsync(long id, bool enabled); } }