Api/Netina.Domain/MartenEntities/Pages/BasePage.cs

44 lines
1.6 KiB
C#
Raw Permalink Normal View History

namespace Netina.Domain.MartenEntities.Pages;
public class BasePage : MartenEntity
2024-02-12 22:01:15 +03:30
{
public string Title { get; set; } = string.Empty;
2024-02-12 22:01:15 +03:30
public string Description { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public bool IsCustomPage { get; set; }
public bool IsHtmlBasePage { get; set; }
public string Slug { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty;
public string Data { get; set; } = string.Empty;
public bool Indexing { get; set; } = true;
public List<BasePageSection> Sections { get; set; } = new();
}
public class BasePageSection
{
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string CTAText { get; set; } = string.Empty;
public string CTARoute { get; set; } = string.Empty;
public BasePageSectionType Type { get; set; }
public string Query { get; set; } = string.Empty;
public List<SectionItem> SectionItems { get; set; } = [];
}
public class SectionItem
{
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string ImageLocation { get; set; } = string.Empty;
public string Url { get; set; } = string.Empty;
}
public enum BasePageSectionType
{
[Display(Name = "اسلایدر محصولات")]
ProductSlider = 0,
[Display(Name = "اسلایدر دسته بندی محصولات")]
ProductCategorySlider = 1,
[Display(Name = "اسلایدر بلاگ ها")]
BlogSlider = 2
2024-02-12 22:01:15 +03:30
}