wanshenmean
8 天以前 559bb7b4be83575cc5fedee98484647243c96f89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
}