namespace F9MES.Application.Im; /// 发送单聊消息入参 public class ImSendInput { /// 接收人用户ID public long PeerId { get; set; } /// 消息内容 public string Content { get; set; } = ""; } /// 标记已读入参 public class ImReadInput { /// 对端用户ID(标记与该用户的所有未读) public long PeerId { get; set; } } /// 系统/业务通知入参(群发) public class ImNotifyInput { /// 接收人用户ID列表(空=全部启用用户) public List? UserIds { get; set; } /// 消息类型:0=系统通知 1=业务提醒 2=审批通知 3=预警 public int MsgType { get; set; } = 0; /// 标题 public string Title { get; set; } = ""; /// 内容 public string Content { get; set; } = ""; } /// 会话条目 public class ImSessionDto { public long PeerId { get; set; } public string PeerName { get; set; } = ""; public string? LastContent { get; set; } public DateTime LastTime { get; set; } public int Unread { get; set; } public int MsgType { get; set; } /// 是否系统通知/公告会话(PeerId=0) public bool IsSystem { get; set; } } /// 消息条目 public class ImMessageDto { public long Id { get; set; } public long SenderId { get; set; } public string SenderName { get; set; } = ""; public long ReceiverId { get; set; } public string Content { get; set; } = ""; /// 标题(系统通知/公告标题) public string? Title { get; set; } public int MsgType { get; set; } public DateTime SendTime { get; set; } /// 是否我发出的 public bool Mine { get; set; } /// 是否系统通知/公告消息 public bool IsSystem { get; set; } } /// IM 配置项(读写入参/返回) public class ImConfigInput { /// 配置键 public string Key { get; set; } = ""; /// 配置值 public string Value { get; set; } = ""; /// 配置名称 public string Name { get; set; } = ""; } /// IM 管理消息条目 public class ImAdminMessageDto { public long Id { get; set; } /// 发送人ID(0=系统) public long SenderId { get; set; } /// 发送人姓名 public string SenderName { get; set; } = ""; /// 接收人ID public long ReceiverId { get; set; } /// 接收人姓名 public string ReceiverName { get; set; } = ""; /// 标题 public string Title { get; set; } = ""; /// 内容 public string Content { get; set; } = ""; /// 消息类型:0=系统 1=业务 2=审批 3=预警 4=单聊 public int MsgType { get; set; } /// 是否已读 public int IsRead { get; set; } /// 发送时间 public DateTime SendTime { get; set; } }