using JiShe.CollectBus.Common.Enums; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JiShe.CollectBus.Protocol.Contracts.Protocol.Dto { public class AnalysisBaseDto { /// /// 是否有效数据 /// public bool ValidData { get; set; } = true; /// /// 数据类型 /// public string DataType { get; set; } = null!; /// /// 错误码信息 /// public string? ErrorCodeMsg { get; set; } /// /// 字段名 /// public string? FiledName { get; set; } /// /// 字段描述 /// public string? FiledDesc { get; set; } /// /// 数据时标 /// public DateTime? TimeSpan { get; set; } /// /// 项目Id /// public int ProjectId { get; set; } /// /// 设备ID(电表ID,水表ID,气表ID,集中器ID等) /// public int DeviceId { get; set; } /// /// 设备类型 /// public MeterTypeEnum DeviceType { get; set;} /// /// 数据业务库ID /// public int DatabaseBusiID { get; set; } /// /// 设备地址(电表地址,水表地址,气表地址,集中器地址等) /// public string DeviceAddress { get; set; } = null!; } public class AnalysisBaseDto : AnalysisBaseDto { /// /// 抄读值 /// public T? DataValue { get; set; } } }