using Model;
using Model.Dto.Config;
using SqlSugar;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Service.Interface.Config
{
///
/// IOT设备管理 服务接口
///
public interface IDeviceService
{
///
/// 分页查询设备列表(支持关键字搜索编号/名称/类型)
///
Task>> GetPagedAsync(int pageIndex, int pageSize, RefAsync total, string? keyword);
///
/// 根据 Id 获取设备详情
///
Task> GetByIdAsync(long id);
///
/// 新增设备(校验编号唯一性)
///
Task AddAsync(IotDeviceDto dto);
///
/// 修改设备
///
Task UpdateAsync(IotDeviceDto dto);
///
/// 删除设备(软删除)
///
Task DeleteAsync(long id);
///
/// 分页查询指定设备的日志(设备独享日志)
///
Task>> GetDeviceLogsAsync(long deviceId, int pageIndex, int pageSize, RefAsync total);
}
}