Files
IM/backend/IM_API/Models/Conversation.cs
T

43 lines
935 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
namespace IM_API.Models;
public partial class Conversation
{
public int Id { get; set; }
/// <summary>
/// 用户
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 对方ID(群聊为群聊ID,单聊为单聊ID)
/// </summary>
public int TargetId { get; set; }
/// <summary>
/// 消息类型(同Messages.MsgType
/// </summary>
public int MsgType { get; set; }
/// <summary>
/// 最后一条消息ID
/// </summary>
public int LastMessageId { get; set; }
/// <summary>
/// 未读消息数
/// </summary>
public int UnreadCount { get; set; }
public string TargetName { get; set; } = null!;
public string TargetAvatar { get; set; } = null!;
public virtual Message LastMessage { get; set; } = null!;
public virtual User User { get; set; } = null!;
}