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; } public string IpAddress { get; set; } public int Port { get; set; } public int Rack { get; set; } public int Slot { get; set; } public CpuType CpuType { get; set; } public DeviceType DeviceType { get; set; } 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; } }