26 lines
827 B
C#
26 lines
827 B
C#
using Model;
|
|
using Model.Entity.Inspection;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Service.Interface
|
|
{
|
|
/// <summary>
|
|
/// 设备看板服务接口(温湿度)
|
|
/// </summary>
|
|
public interface IDeviceDashboardService
|
|
{
|
|
/// <summary>
|
|
/// 获取每台设备最新一条温湿度数据(看板卡片用)
|
|
/// </summary>
|
|
Task<Result<List<TemperatureBoxDataEntity>>> GetRealtimeAsync();
|
|
|
|
/// <summary>
|
|
/// 获取指定设备最近 N 分钟的温湿度曲线数据(升序)
|
|
/// </summary>
|
|
/// <param name="deviceCode">设备标识</param>
|
|
/// <param name="minutes">最近多少分钟</param>
|
|
Task<Result<List<TemperatureBoxDataEntity>>> GetCurveAsync(string deviceCode, int minutes);
|
|
}
|
|
}
|