using Model;
using Model.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Service.Interface
{
///
/// 监测数值记录服务接口
///
public interface IMonitorValueService : IBaseService
{
///
/// 批量插入监测数据(工控高频采样推荐使用,性能远高于单条循环插入)
///
/// 实体集合
/// 返回操作是否成功的 Result
Task> InsertRangeAsync(List entities);
///
/// 根据监测通道名称,分页查询历史记录
///
/// 通道名称(例如:台架1.读取主轴温度)
/// 页码
/// 每页大小
/// 总条数输出
/// 分页数据结果
Task>> GetPagedByNameAsync(string monitorName, int pageIndex, int pageSize, RefAsync total);
}
}