You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Service/DjyMessage/Dto/DjyMessageDto.cs

247 lines
5.3 KiB
C#

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