using IoTIntegrationPlatform.Model.common; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Security.Principal; using System.Text; using System.Threading.Tasks; using static IoTIntegrationPlatform.Model.Enum.EnumDevice; namespace IoTIntegrationPlatform.Model.Model { /// /// 平台型号明细 /// [SugarTable("platform_model_detail")] public class PlatformModelDetail { /// /// 平台型号明细id /// [SugarColumn(ColumnName = "platform_model_detail_id", IsPrimaryKey = true, IsIdentity = true)] public int PlatformModelDetailId { get; set; } /// /// 平台型号id /// [SugarColumn(ColumnName = "platform_model_id")] public int PlatformModelId { get; set; } /// /// 设备名称 /// [SugarColumn(ColumnName = "device_name")] public string DeviceName { get; set; } /// /// 设备图标 /// [SugarColumn(ColumnName = "device_icon_url")] public string DeviceIconUrl { get; set; } /// /// 设备类型 /// [SugarColumn(ColumnName = "device_type")] public EnumDeviceType DeviceType { get; set; } /// /// 设备通讯方式 /// [SugarColumn(ColumnName = "device_communication_type")] public EnumDeviceCommunicationType DeviceCommunicationType { get; set; } /// /// Modbus校验位 /// [SugarColumn(ColumnName = "modbus_parity_bits")] public int? ModbusParityBits { get; set; } /// /// Modbus数据位 /// [SugarColumn(ColumnName = "modbus_data_bits")] public int? ModbusDataBits { get; set; } /// /// Modbus停止位 /// [SugarColumn(ColumnName = "modbus_stop_bits")] public int? ModbusStopBits { get; set; } /// /// Modbus从站地址 /// [SugarColumn(ColumnName = "modbus_register_address")] public int? ModbusRegisterAddress { get; set; } /// /// Modbus功能码 /// [SugarColumn(ColumnName = "modbus_register_type")] public EnumModbusRegisterType ModbusRegisterType { get; set; } /// /// Modbus起始地址 /// [SugarColumn(ColumnName = "modbus_start_address")] public int? ModbusStartAddress { get; set; } /// /// Modbus数据长度 /// [SugarColumn(ColumnName = "modbus_data_length")] public int? ModbusDataLength { get; set; } /// /// Modbus校验码低位 /// [SugarColumn(ColumnName = "modbus_check_low")] public int? ModbusCheckLow { get; set; } /// /// Modbus校验码高位 /// [SugarColumn(ColumnName = "modbus_check_high")] public int? ModbusCheckHigh { get; set; } /// /// Modbus应答有效字节 /// [SugarColumn(ColumnName = "modbus_response_effective_byte")] public int? ModbusResponseEffectiveByte { get; set; } /// /// Modbus应答校验码低位 /// [SugarColumn(ColumnName = "modbus_response_check_low")] public int? ModbusResponseCheckLow { get; set; } /// /// Modbus应答校验码高位 /// [SugarColumn(ColumnName = "modbus_response_check_high")] public int? ModbusResponseCheckHigh { get; set; } /// /// 设备值 json数组字符串 /// [SugarColumn(ColumnName = "device_value")] public string DeviceValue { get; set; } /// /// http地址 /// [SugarColumn(ColumnName = "httpurl")] public string Httpurl { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "create_time")] public DateTime CreateTime { get; set; } /// /// 修改时间 /// [SugarColumn(ColumnName = "update_time")] public DateTime UpdateTime { get; set; } /// /// 操作人id /// [SugarColumn(ColumnName = "operation_id")] public int OperationId { get; set; } /// /// 操作人名称 /// [SugarColumn(ColumnName = "operation_name")] public string OperationName { get; set; } /// /// 是否有效 0:否 1:是 /// [SugarColumn(ColumnName = "is_valid")] public bool IsValid { get; set; } } }