Initial commit - ERP
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user