using Model;
using Model.Dto.Inspection;
using Model.Entity.Inspection;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Service.Interface
{
///
/// 数据转发 服务接口(配置数据转发规则,支持通过消息通知的方式定时转发数据)
///
public interface IDataForwardService
{
///
/// 获取全部转发规则列表
///
Task>> GetListAsync();
///
/// 新增转发规则(前端传 DTO,Id 为 string)
///
Task AddAsync(DataForwardRuleDto dto);
///
/// 修改转发规则(前端传 DTO,Id 为 string)
///
Task UpdateAsync(DataForwardRuleDto dto);
///
/// 删除转发规则(软删除)
///
Task DeleteAsync(long id);
///
/// 启用/停用转发规则
///
Task SetEnabledAsync(long id, bool enabled);
}
}