using DMS.Core.Enums; namespace DMS.Application.DTOs; /// /// 用于在UI上显示设备基本信息的DTO。 /// public class DeviceDto { /// /// 设备唯一标识符 /// public int Id { get; set; } /// /// 设备名称 /// public string Name { get; set; } /// /// 设备描述信息 /// public string Description { get; set; } /// /// 通信协议类型 /// public ProtocolType Protocol { get; set; } /// /// 设备IP地址 /// public string IpAddress { get; set; } /// /// 设备端口号 /// public int Port { get; set; } /// /// PLC机架号(用于PLC连接) /// public int Rack { get; set; } /// /// PLC插槽号(用于PLC连接) /// public int Slot { get; set; } /// /// CPU类型 /// public CpuType CpuType { get; set; } /// /// 设备类型 /// public DeviceType DeviceType { get; set; } /// /// OPC UA服务器URL /// public string OpcUaServerUrl { get; set; } /// /// 设备是否处于激活状态 /// public bool IsActive { get; set; } /// /// 设备是否正在运行 /// public bool IsRunning { get; set; } /// /// 设备当前状态("在线", "离线", "连接中...") /// public string Status { get; set; } // "在线", "离线", "连接中..." /// /// 设备关联的变量表集合 /// public List VariableTables { get; set; } }