using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YBDevice.Entity;

namespace YBDevice.Application
{
    /// <summary>
    /// 统计管理
    /// </summary>
    public interface IReportService
    {
        /// <summary>
        /// 获取合计信息
        /// </summary>
        /// <returns></returns>
        Task<YB_Combined> GetCombinedInfoAsync();
        /// <summary>
        /// 获取日统计数据
        /// </summary>
        /// <param name="starttime"></param>
        /// <param name="endtime"></param>
        /// <returns></returns>
        Task<List<ReportChartDto>> GetListAsync(DateTime? starttime,DateTime? endtime);
        /// <summary>
        /// 获取指定设备统计数据
        /// </summary>
        /// <param name="id"></param>
        /// <param name="starttime"></param>
        /// <param name="endtime"></param>
        /// <returns></returns>
        Task<List<ReportChartDto>> GetDevListAsync(int id, DateTime? starttime, DateTime? endtime);
    }
}
