2025-07-21 14:35:17 +08:00
|
|
|
using DMS.Core.Enums;
|
|
|
|
|
|
|
|
|
|
namespace DMS.Application.DTOs;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用于创建新设备时传输数据的DTO。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class CreateDeviceDto
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
2025-07-24 15:07:03 +08:00
|
|
|
public string Description { get; set; }
|
2025-07-21 14:35:17 +08:00
|
|
|
public ProtocolType Protocol { get; set; }
|
|
|
|
|
public string IpAddress { get; set; }
|
|
|
|
|
public int Port { get; set; }
|
2025-07-24 15:07:03 +08:00
|
|
|
public int Rack { get; set; }
|
|
|
|
|
public int Slot { get; set; }
|
|
|
|
|
public string CpuType { get; set; }
|
|
|
|
|
|
|
|
|
|
public DeviceType DeviceType { get; set; }
|
|
|
|
|
public string OpcUaServerUrl { get; set; }
|
|
|
|
|
public bool IsActive { get; set; }
|
2025-07-21 14:35:17 +08:00
|
|
|
}
|