using System;
using System.Collections.Generic;
using CncModels.Entity;
using CncModels.Dto;
using CncModels.Dto.Alert;

namespace CncRepository.Interface
{
    /// <summary>
    /// cnc_alert 告警表 仓储接口
    /// </summary>
    public interface IAlertRepository
    {
        Alert GetById(long id);
        PagedResult<AlertListItem> GetList(AlertQuery query);
        long Create(Alert entity);
        bool Resolve(long id);
        int BatchResolve(List<long> ids);
        AlertStatisticsResponse GetStatistics();
    }
}
