2024-04-22 13:33:39 +03:30
|
|
|
|
namespace Netina.Domain.MartenEntities.Pages;
|
2024-02-13 12:22:58 +03:30
|
|
|
|
|
2024-04-01 13:05:11 +03:30
|
|
|
|
public class BasePage : MartenEntity
|
2024-02-12 22:01:15 +03:30
|
|
|
|
{
|
2024-05-14 12:46:11 +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;
|
2025-03-23 11:04:45 +03:30
|
|
|
|
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;
|
2025-04-29 19:38:46 +03:30
|
|
|
|
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;
|
2025-03-23 11:04:45 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum BasePageSectionType
|
|
|
|
|
|
{
|
|
|
|
|
|
[Display(Name = "اسلایدر محصولات")]
|
|
|
|
|
|
ProductSlider = 0,
|
|
|
|
|
|
[Display(Name = "اسلایدر دسته بندی محصولات")]
|
|
|
|
|
|
ProductCategorySlider = 1,
|
|
|
|
|
|
[Display(Name = "اسلایدر بلاگ ها")]
|
|
|
|
|
|
BlogSlider = 2
|
2024-02-12 22:01:15 +03:30
|
|
|
|
}
|