Files
IOT_API/Service/Interface/Inspection/IAlertRuleService.cs
T
2026-08-28 15:20:52 +08:00

40 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Model;
using Model.Dto.Inspection;
using Model.Entity.Inspection;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Service.Interface
{
/// <summary>
/// 告警规则 服务接口(规则实例:查看所有设备告警的规则列表)
/// </summary>
public interface IAlertRuleService
{
/// <summary>
/// 获取全部告警规则列表
/// </summary>
Task<Result<List<AlertRuleDto>>> GetListAsync();
/// <summary>
/// 新增告警规则(前端传 DTOId 为 string
/// </summary>
Task<Result> AddAsync(AlertRuleDto dto);
/// <summary>
/// 修改告警规则(前端传 DTOId 为 string
/// </summary>
Task<Result> UpdateAsync(AlertRuleDto dto);
/// <summary>
/// 删除告警规则(软删除)
/// </summary>
Task<Result> DeleteAsync(long id);
/// <summary>
/// 启用/停用告警规则
/// </summary>
Task<Result> SetEnabledAsync(long id, bool enabled);
}
}