using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static IoTIntegrationPlatform.Model.Enum.EnumMqtt; namespace IoTIntegrationPlatform.Model.Model { /// /// mqtt 通讯日志 /// [SugarTable("mqtt_log")] public class MqttLog { /// /// 日志id /// [SugarColumn(ColumnName = "uuid", IsPrimaryKey = true)] public string Uuid { get; set; } /// /// 客户端id /// [SugarColumn(ColumnName = "client_id")] public string ClientId { get; set; } /// /// 主题类型 /// [SugarColumn(ColumnName = "topic_type")] public EnumMqttTopicType TopicType { get; set; } /// /// 主题类型名称 /// [SugarColumn(ColumnName = "topic_type_name")] public string TopicTypeName { get; set; } /// /// 主题 /// [SugarColumn(ColumnName = "topic")] public string Topic { get; set; } /// /// 通讯内容 /// [SugarColumn(ColumnName = "content")] public string Content { get; set; } ///// ///// 网关mac地址 ///// //[SugarColumn(ColumnName = "device_mac")] //public string deviceMac { get; set; } /// /// 消息模式 1:发布 2:订阅 3:其他 /// [SugarColumn(ColumnName = "message_pattern")] public int MessagePattern { get; set; } /// /// 操作时间 /// [SugarColumn(ColumnName = "create_time")] public long CreateTime { get; set; } /// /// 发送状态 0:未发送 1:已发送 /// [SugarColumn(ColumnName = "send_state")] public int SendState { get; set; } /// /// 接收状态 0:未接收 1:已接收 /// [SugarColumn(ColumnName = "receive_state")] public int ReceiveState { get; set; } /// /// 错误代码 /// [SugarColumn(ColumnName = "err_code")] public string ErrCode { get; set; } /// /// 错误信息 /// [SugarColumn(ColumnName = "err_message")] public string ErrMessage { get; set; } } }