using MediatR;

namespace CMSMicroservice.Application.DiscountShopCQ.Queries.GetDiscountProductById;

public class GetDiscountProductByIdQuery : IRequest<DiscountProductDetailDto?>
{
    public long ProductId { get; set; }
}

public class DiscountProductDetailDto
{
    public long Id { get; set; }
    public string Title { get; set; }
    public string ShortInfomation { get; set; }
    public string FullInformation { get; set; }
    public long Price { get; set; }
    public int MaxDiscountPercent { get; set; }
    public int Rate { 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; }
    public bool IsActive { get; set; }
    public List<CategoryDto> Categories { get; set; } = new();
}

public class CategoryDto
{
    public long Id { get; set; }
    public string Name { get; set; }
    public string Title { get; set; }
}
