温度看板搭建示例
This commit is contained in:
@@ -1,10 +1,25 @@
|
||||
using Model;
|
||||
using Model.Entity;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Service.Interface
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备看板 服务接口
|
||||
/// 设备看板服务接口(温湿度)
|
||||
/// </summary>
|
||||
public interface IDeviceDashboardService
|
||||
{
|
||||
// TODO: 定义 设备看板 相关方法
|
||||
/// <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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user