Initial commit - ECommerce project

This commit is contained in:
2026-08-05 23:58:33 +03:00
commit bcebac18e7
63 changed files with 4543 additions and 0 deletions
@@ -0,0 +1,10 @@
namespace Commerce.Contracts.DTOs;
public class CategoryFilter
{
public string? Name { get; set; }
public bool? IsBundle { get; set; }
public string? Language { get; set; }
public bool? Random { get; set; } = false;
}
+25
View File
@@ -0,0 +1,25 @@
namespace Commerce.Contracts.DTOs;
public class CategoryVM
{
public Guid? Id { get; set; }
public string[]? Photos { get; set; }
public Guid? ParentCategoryId { get; set; }
public ICollection<CategoryVM>? ChildCategories { get; set; }
public bool IsBundle { get; set; }
public List<CategoryTranslationVM> Translations { get; set; } = new();
}
public class CategoryTranslationVM
{
public string Language { get; set; } = string.Empty;
public CategoryInfoVM Info { get; set; } = new();
}
public class CategoryInfoVM
{
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public List<TechnicalDetailVM> TechnicalDetails { get; set; } = new();
}
+14
View File
@@ -0,0 +1,14 @@
namespace Commerce.Contracts.DTOs;
public class ProductFilter
{
public string? Name { get; set; }
public double? Price { get; set; }
public double? Discount { get; set; }
public bool? IsBundle { get; set; }
public Guid? CategoryId { get; set; }
public string? Language { get; set; }
public bool? Random { get; set; } = false;
}
+38
View File
@@ -0,0 +1,38 @@
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;
}
@@ -0,0 +1,9 @@
using System.Collections.Generic;
namespace Commerce.Contracts.DTOs;
public class TechnicalDetail
{
public string Key { get; set; } = string.Empty;
public string Value { get; set; } = string.Empty;
}