using SqlSugar;
|
|
namespace WIDESEAWCS_S7Simulator.Application.DTOs;
|
|
/// <summary>
|
/// 设备信息 DTO(映射 WCS Dt_DeviceInfo 表)
|
/// </summary>
|
[SugarTable("Dt_DeviceInfo")]
|
public class WcsDeviceDto
|
{
|
public int Id { get; set; }
|
public string DeviceCode { get; set; } = string.Empty;
|
public string DeviceName { get; set; } = string.Empty;
|
public string DeviceType { get; set; } = string.Empty;
|
public string DeviceStatus { get; set; } = string.Empty;
|
public string DeviceIp { get; set; } = string.Empty;
|
public int DevicePort { get; set; }
|
public string DevicePlcType { get; set; } = string.Empty;
|
public string DeviceRemark { get; set; } = string.Empty;
|
}
|
|
/// <summary>
|
/// 设备协议 DTO(映射 WCS Dt_DeviceProtocol 表)
|
/// </summary>
|
[SugarTable("Dt_DeviceProtocol")]
|
public class WcsDeviceProtocolDto
|
{
|
public int Id { get; set; }
|
public int DeviceId { get; set; }
|
public string DeviceChildCode { get; set; } = string.Empty;
|
public string DeviceProDataBlock { get; set; } = string.Empty;
|
public decimal DeviceProOffset { get; set; }
|
public string DeviceProDataType { get; set; } = string.Empty;
|
public int DeviceProDataLength { get; set; }
|
public string DeviceProParamName { get; set; } = string.Empty;
|
public string DeviceProParamType { get; set; } = string.Empty;
|
public string DeviceProParamDes { get; set; } = string.Empty;
|
public string DeviceProRemark { get; set; } = string.Empty;
|
}
|