using IoTIntegrationPlatform.Model.common; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static IoTIntegrationPlatform.Model.Enum.EnumDevice; namespace IoTIntegrationPlatform.Model.Model { /// /// 平台设备明细 /// [SugarTable("platform_device_detail")] public class PlatformDeviceDetail { /// /// 设备id /// [SugarColumn(ColumnName = "device_id", IsPrimaryKey = true)] public string DeviceId { get; set; } /// /// 平台id /// [SugarColumn(ColumnName = "platform_id")] public int PlatformId { get; set; } /// /// 平台型号明细id /// [SugarColumn(ColumnName = "platform_model_detail_id")] public int PlatformModelDetailId { 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_type_name")] public string DeviceTypeName { 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; } = 0; /// /// Modbus校验码高位 /// [SugarColumn(ColumnName = "modbus_check_high")] public int? ModbusCheckHigh { get; set; } = 0; /// /// Modbus应答有效字节 /// [SugarColumn(ColumnName = "modbus_response_effective_byte")] public int? ModbusResponseEffectiveByte { get; set; } = 0; /// /// Modbus应答校验码低位 /// [SugarColumn(ColumnName = "modbus_response_check_low")] public int? ModbusResponseCheckLow { get; set; } = 0; /// /// Modbus应答校验码高位 /// [SugarColumn(ColumnName = "modbus_response_check_high")] public int? ModbusResponseCheckHigh { get; set; } = 0; /// /// Modbus结果换算 /// [SugarColumn(ColumnName = "modbus_result_conversion")] public EnumModbusResultConversion ModbusResultConversion { get; set; } /// /// 设备值 json数组字符串 /// [SugarColumn(ColumnName = "device_value")] public string DeviceValue { get; set; } /// /// 设备状态 /// [SugarColumn(ColumnName = "device_state")] public EnumDeviceStatus DeviceState { get; set; } /// /// http地址 /// [SugarColumn(ColumnName = "httpurl")] public string Httpurl { get; set; } /// /// 备注 /// [SugarColumn(ColumnName = "remark")] public string Remark { 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; } /// /// 是否读取数据 0:否 1:是 /// [SugarColumn(ColumnName = "is_read")] public bool IsRead { get; set; } } }