using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace MadRunFabric.Model.MessageApi { /// /// 工单/用户关联表 - 记录每个用户是否已读信息 /// [BsonIgnoreExtraElements] public class Wo_Order_User_Map : IBaseModel { /// /// id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 工单类型(枚举EnumOrderState) /// 维修工单 = 1, 保养工单 = 2, 运行工单 = 3, 超时工单 = 4 /// public int channelcode { get; set; } /// /// 工单编号 /// public string wocode { get; set; } /// /// 工单id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string woid { get; set; } /// /// 已读用户code /// public string readby { get; set; } /// /// 已读时间 /// public DateTime readtime { get { return _readtime.ToLocalTime(); } set { _readtime = value.ToLocalTime(); } } private DateTime _readtime; /// /// 推送状态 (0未推送,1已推送) /// public int ispush { get; set; } = 0; /// /// 消息通知状态 (0未通知,1已通知) /// public int isnotice { get; set; } = 0; /// /// 是否已读 (0未读【推送消息】,1已读) /// public int isread { get; set; } = 0; /// /// 备注 /// public string note { get; set; } /// /// 工单状态:0创建工单,1已转派,3已处理,6挂起 /// public int wostate { get; set; } = 0; } }