using Nirvana.Common;
using Nirvana.Common.ApiBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace YBDevice.NApi.Application.BusinessClient
{
    /// <summary>
    /// 设备管理
    /// </summary>
    public interface IDeviceService
    {
        /// <summary>
        /// 设备激活
        /// </summary>
        /// <returns></returns>
        Task<ResultInfo> ActiveAsync(string sn, string code);
        /// <summary>
        /// 名下设备列表
        /// </summary>
        /// <param name="queryParams"></param>
        /// <returns></returns>
        Task<ResultInfo> GetListAsync(QueryParams queryParams);
        /// <summary>
        /// 设备详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ResultInfo> DetailAsync(int id);
        /// <summary>
        /// 获取设备类型列表
        /// </summary>
        /// <returns></returns>
        Task<ResultInfo> GetDevTypeListAsync();
    }
}
