using MediatR;

namespace CMSMicroservice.Application.DiscountShopCQ.Commands.UpdateDiscountProduct;

public class UpdateDiscountProductCommand : IRequest<Unit>
{
    public long ProductId { 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 string ImagePath { get; set; }
    public string ThumbnailPath { get; set; }
    public int SortOrder { get; set; }
    public int RemainingCount { get; set; }
    public bool IsActive { get; set; }
    public List<long> CategoryIds { get; set; } = new();

    // Image file upload
    public byte[]? ImageFileBytes { get; set; }
    public string? ImageFileMime { get; set; }
    public string? ImageFileName { get; set; }
    public byte[]? ThumbnailFileBytes { get; set; }
    public string? ThumbnailFileMime { get; set; }
    public string? ThumbnailFileName { get; set; }
}
