37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using JiShe.IoT.DeviceAggregation.Dto;
|
|
using JiShe.ServicePro.Core;
|
|
using JiShe.ServicePro.DeviceManagement.DeviceInfos;
|
|
using Volo.Abp;
|
|
|
|
namespace JiShe.IoT.DeviceAggregation
|
|
{
|
|
/// <summary>
|
|
/// 设备聚合服务
|
|
/// </summary>
|
|
public interface IDeviceAggregationService
|
|
{
|
|
/// <summary>
|
|
/// 创建设备信息
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
Task<bool> CreateAsync(CreateDeviceAggregationInput input);
|
|
|
|
/// <summary>
|
|
/// 删除设备信息
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
/// <exception cref="UserFriendlyException"></exception>
|
|
Task<bool> DeleteAsync(IdInput input);
|
|
|
|
/// <summary>
|
|
/// 根据设备ID查询设备信息
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
/// <exception cref="UserFriendlyException"></exception>
|
|
Task<DeviceManagementInfoDto> FindByIdAsync(IdInput input);
|
|
}
|
|
}
|