using System; using Myshipping.Core; namespace Myshipping.Core { /// /// 消息dto /// public class DjyMessageDto { /// /// 前一条消息 /// public long? PreviousId { get; set; } /// /// 关联ID /// public string RelativeId { get; set; } /// /// 关联代码 /// public string RelativeCode { get; set; } /// /// 消息类型 /// public string TypeCode { get; set; } /// /// 消息类型名称 /// public string TypeName { get; set; } /// /// 系统模块 /// public string Module { get; set; } /// /// 消息内容 /// public string Content { get; set; } /// /// 已读标志 /// public bool IsRead { get; set; } /// /// 读取时间 /// public DateTime? ReadTime { get; set; } /// /// 读取人 /// public string ReadUser { get; set; } /// /// 处理状态 /// public string ProcStatus { get; set; } /// /// 处理结果 /// public string ProcResult { get; set; } /// /// 处理时间 /// public DateTime? ProcTime { get; set; } /// /// 处理人 /// public string ProcUser { get; set; } /// /// 发送人ID /// public long? FromId { get; set; } /// /// 发送人 /// public string FromName { get; set; } /// /// 接收人ID /// public long? ToId { get; set; } /// /// 接收人 /// public string ToName { get; set; } } /// /// 消息查询 /// public class DjyMessageQueryInput : PageInputBase { /// /// 消息类型 /// public string TypeCode { get; set; } /// /// 系统模块 /// public string Module { get; set; } /// /// 已读标志 /// public bool? IsRead { get; set; } /// /// 处理状态 /// public string ProcStatus { get; set; } /// /// 消息时间起始 /// public DateTime? CreateTimeStart { get; set; } /// /// 消息时间截止 /// public DateTime? CreateTimeEnd { get; set; } /// /// 关联编号 /// public string RelativeCode { get; set; } /// /// 发送人 /// public string FromName { get; set; } } /// /// 消息保存 /// public class DjyMessageSaveInput : DjyMessageDto { /// /// 消息类型 /// public new MessageType TypeCode { get; set; } /// /// 系统模块 /// public new MessageModule Module { get; set; } /// /// 处理状态 /// public new MessageProcessStatus ProcStatus { get; set; } } /// /// 消息详情 /// public class DjyMessageDetailOutput : DjyMessageDto { /// /// 主键Id /// public long Id { get; set; } /// /// 创建时间 /// public string CreatedTime { get; set; } /// /// 附加数据 /// public string ExtData { get; set; } } /// /// 消息列表 /// public class DjyMessageListOutput : DjyMessageDto { /// /// 主键Id /// public long Id { get; set; } /// /// 创建时间 /// public string CreatedTime { get; set; } } /// /// 消息处理 /// public class DjyMessageProcessInput { /// /// id /// public long Id { get; set; } /// /// 处理状态 /// public MessageProcessStatus ProcStatus { get; set; } /// /// 处理结果(备注) /// public string Comment { get; set; } } /// /// 消息数量统计 /// public class DjyMessageProcessNum { /// /// 未读数量 /// public int UnreadCount { get; set; } /// /// 未处理数量 /// public int UnprocessCount { get; set; } } }