37 lines
963 B
C#
37 lines
963 B
C#
using MessageService.Domain.Enums;
|
|
|
|
namespace MessageService.WebApi.Application.Dtos
|
|
{
|
|
public class ConversationResponse
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 对方ID(群聊为群聊ID,单聊为单聊ID)
|
|
/// </summary>
|
|
public Guid TargetId { get; set; }
|
|
public string TargetAvatar { get; set; }
|
|
public string TargetName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 最后一条未读消息ID
|
|
/// </summary>
|
|
public long? LastReadSequenceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 未读消息数
|
|
/// </summary>
|
|
public int UnreadCount { get; set; }
|
|
|
|
public ChatType ChatType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 最后一条最新消息
|
|
/// </summary>
|
|
public string LastMessage { get; set; }
|
|
public DateTimeOffset DateTime { get; set; }
|
|
}
|
|
}
|