Files
IOT_API/Model/Dto/Config/IotDeviceDto.cs
T

56 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Model.Entity.Config;
namespace Model.Dto.Config
{
/// <summary>
/// IOT 设备 DTOId 由 long 改为 string,避免前端精度丢失)
/// </summary>
public class IotDeviceDto
{
/// <summary>主键 Idlong → string</summary>
public string Id { get; set; }
/// <summary>设备编号</summary>
public string Code { get; set; }
/// <summary>设备名称</summary>
public string Name { get; set; }
/// <summary>设备类型(型号,对应 DeviceCommand 驱动类)</summary>
public string DeviceType { get; set; }
/// <summary>所属网关Code</summary>
public string GatewayCode { get; set; }
/// <summary>从站地址</summary>
public byte SlaveId { get; set; }
/// <summary>制造商</summary>
public string? Manufacturer { get; set; }
/// <summary>设备描述</summary>
public string? Description { get; set; }
/// <summary>通讯协议类型</summary>
public IotDeviceProtocolEnum ProtocolType { get; set; }
/// <summary>是否启用采集</summary>
public bool IsEnabled { get; set; } = true;
/// <summary>在线状态</summary>
public IotDeviceOnlineStatusEnum OnlineStatus { get; set; }
/// <summary>最后采集时间</summary>
public DateTime? LastCollectTime { get; set; }
/// <summary>最近错误信息</summary>
public string? LastError { get; set; }
/// <summary>备注</summary>
public string? Remark { get; set; }
/// <summary>创建时间</summary>
public DateTime? CreateTime { get; set; }
}
}