namespace CMSMicroservice.Application.PublicMessageCQ.Queries.GetPublicMessage;

/// <summary>
/// دریافت یک پیام عمومی با شناسه
/// </summary>
public record GetPublicMessageQuery : IRequest<PublicMessageDto?>
{
    public long MessageId { get; init; }
}

public class PublicMessageDto
{
    public long Id { get; set; }
    public string Title { get; set; } = string.Empty;
    public string Content { get; set; } = string.Empty;
    public MessageType MessageType { get; set; }
    public bool IsActive { get; set; }
    public bool IsArchived { get; set; }
    public DateTime? StartDate { get; set; }
    public DateTime? EndDate { get; set; }
    public DateTime? PublishedAt { get; set; }
    public DateTime? ArchivedAt { get; set; }
    public DateTime CreatedAt { get; set; }
    public DateTime? LastModifiedAt { get; set; }
}
