namespace CMSMicroservice.Application.SitePageCQ.Queries.GetSitePage;

public class SitePageDto
{
    public long Id { get; set; }
    public string PageKey { get; set; } = default!;
    public string Title { get; set; } = default!;
    public string? MetaDescription { get; set; }
    public string? HeroTitle { get; set; }
    public string? HeroSubtitle { get; set; }
    public string? HeroImagePath { get; set; }
    public bool IsActive { get; set; }
    public DateTime Created { get; set; }
    public DateTime? LastModified { get; set; }
    public List<SitePageSectionDto> Sections { get; set; } = new();
}

public class SitePageSectionDto
{
    public long Id { get; set; }
    public string SectionKey { get; set; } = default!;
    public string? Title { get; set; }
    public string? Subtitle { get; set; }
    public string? HtmlContent { get; set; }
    public string? IconName { get; set; }
    public string? ImagePath { get; set; }
    public int SortOrder { get; set; }
    public bool IsActive { get; set; }
    public string? ExtraData { get; set; }
}
