namespace CMSMicroservice.Application.ProductsCQ.Queries.GetAllProductsByFilter;
public record GetAllProductsByFilterQuery : IRequest<GetAllProductsByFilterResponseDto>
{
    //موقعیت صفحه بندی 
    public PaginationState? PaginationState { get; init; }
    //مرتب سازی بر اساس 
    public string? SortBy { get; init; }
    //فیلتر 
    public GetAllProductsByFilterFilter? Filter { get; init; }

}public class GetAllProductsByFilterFilter
{
    // 
    public long? Id { get; set; }
    // 
    public string? Title { get; set; }
    // 
    public string? Description { get; set; }
    // 
    public string? ShortInfomation { get; set; }
    // 
    public string? FullInformation { get; set; }
    // 
    public long? Price { get; set; }
    // 
    public int? Discount { get; set; }
    // 
    public int? Rate { get; set; }
        // 
        public long? CategoryId { get; set; }
    // 
    public string? ImagePath { get; set; }
    // 
    public string? ThumbnailPath { get; set; }
    // 
    public int? SaleCount { get; set; }
    // 
    public int? ViewCount { get; set; }
    // 
    public int? RemainingCount { get; set; }
}
