79 lines
1.7 KiB
C#
79 lines
1.7 KiB
C#
using System.Text.Json.Serialization;
|
|
using PlcTool.Siemens.PLCAttribute;
|
|
using SqlSugar;
|
|
|
|
namespace WcsMain.DataBase.TableEntity;
|
|
|
|
/// <summary>
|
|
/// t_app_plc 表的实体类
|
|
/// </summary>
|
|
[SugarTable("tbl_app_plc")]
|
|
public class AppPLC
|
|
{
|
|
/// <summary>
|
|
/// PLC 编号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "plc_id", IsPrimaryKey = true)]
|
|
[PlcId]
|
|
[JsonPropertyName("plcId")]
|
|
public int? PLCId { get; set; }
|
|
|
|
/// <summary>
|
|
/// PLC IP 地址
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "plc_ip")]
|
|
[PlcIP]
|
|
[JsonPropertyName("plcIp")]
|
|
public string? PLCIp { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// PLC 名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "plc_name")]
|
|
[JsonPropertyName("plcName")]
|
|
public string? PLCName { get; set; }
|
|
|
|
/// <summary>
|
|
/// PLC 状态,是否启用
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "plc_status")]
|
|
[JsonPropertyName("plcStatus")]
|
|
public int? PLCStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// PLC 系列
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "plc_kind")]
|
|
[PlcKind]
|
|
[JsonPropertyName("plcKind")]
|
|
public string? PLCKind { get; set; }
|
|
|
|
/// <summary>
|
|
/// PLC 插槽
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "rack")]
|
|
[Rack]
|
|
[JsonPropertyName("rack")]
|
|
public int? PLCRack { get; set; }
|
|
|
|
/// <summary>
|
|
/// PLC 机架
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "slot")]
|
|
[Slot]
|
|
[JsonPropertyName("slot")]
|
|
public int? PLCSlot { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 备注信息
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "remark")]
|
|
[JsonPropertyName("remark")]
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
|
|
} |