Init
This commit is contained in:
35
Prefab.Web.Client/Models/Catalog/ProductListingModel.cs
Normal file
35
Prefab.Web.Client/Models/Catalog/ProductListingModel.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using Prefab.Web.Client.ViewModels.Catalog;
|
||||
|
||||
namespace Prefab.Web.Client.Models.Catalog;
|
||||
|
||||
public sealed class ProductListingModel
|
||||
{
|
||||
public ProductCategoryModel Category { get; set; } = new();
|
||||
|
||||
public IReadOnlyList<ProductCardModel> Products { get; set; } = Array.Empty<ProductCardModel>();
|
||||
|
||||
public int Total { get; set; }
|
||||
|
||||
public int Page { get; set; }
|
||||
|
||||
public int PageSize { get; set; }
|
||||
|
||||
public string Sort { get; set; } = "name:asc";
|
||||
|
||||
public string View { get; set; } = "grid";
|
||||
}
|
||||
|
||||
public sealed class ProductCategoryModel
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Slug { get; set; } = string.Empty;
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
public string? HeroImageUrl { get; set; }
|
||||
|
||||
public string? Icon { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user