39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
namespace Commerce.Contracts.DTOs;
|
|
|
|
public class ProductVM
|
|
{
|
|
public Guid? Id { get; set; }
|
|
public string[]? Photos { get; set; }
|
|
public double? Price { get; set; }
|
|
public double? Discount { get; set; }
|
|
public DateTime? Created { get; set; }
|
|
public string? CodeName { get; set; }
|
|
public string? CategoryName { get; set; }
|
|
public bool IsBundle { get; set; }
|
|
public ICollection<ProductVM>? ChildProducts { get; set; }
|
|
public Guid? CategoryId { get; set; }
|
|
public Guid? ParentCategoryId { get; set; }
|
|
public ICollection<CategoryVM>? ChildCategories { get; set; }
|
|
|
|
public List<ProductTranslationVM>? Translations { get; set; } = new();
|
|
}
|
|
|
|
public class ProductTranslationVM
|
|
{
|
|
public string Language { get; set; } = string.Empty;
|
|
public ProductInfoVM Info { get; set; } = new();
|
|
}
|
|
|
|
public class ProductInfoVM
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public string Description { get; set; } = string.Empty;
|
|
public List<TechnicalDetailVM> TechnicalDetails { get; set; } = new();
|
|
}
|
|
|
|
public class TechnicalDetailVM
|
|
{
|
|
public string Key { get; set; } = string.Empty;
|
|
public string Value { get; set; } = string.Empty;
|
|
}
|