namespace Entity;

/// <summary>
/// 消息类型
/// </summary>
public enum MessageType
{
    /// <summary>
    /// 文本
    /// </summary>
    Text = 0,
    /// <summary>
    /// 跳转URL
    /// </summary>
    Url = 1,
    /// <summary>
    /// HTML内容
    /// </summary>
    Html = 2
}

/// <summary>
/// 消息实体
/// </summary>
public class MessageRecord : BaseEntity
{
    /// <summary>
    /// 消息标题
    /// </summary>
    public string Title { get; set; } = string.Empty;

    /// <summary>
    /// 消息内容
    /// </summary>
    public string Content { get; set; } = string.Empty;

    /// <summary>
    /// 消息类型
    /// </summary>
    public MessageType MessageType { get; set; } = MessageType.Text;

    /// <summary>
    /// 是否已读
    /// </summary>
    public bool IsRead { get; set; } = false;
}
