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