using MediatR;

namespace CMSMicroservice.Application.BlogPostCQ.Commands.CreateBlogPost;

/// <summary>
/// دستور ایجاد مقاله جدید
/// </summary>
public class CreateBlogPostCommand : IRequest<long>
{
    public string Title { get; set; } = string.Empty;
    public string Slug { get; set; } = string.Empty;
    public string? Summary { get; set; }
    public string HtmlContent { get; set; } = string.Empty;
    public string? FeaturedImagePath { get; set; }
    public string? FeaturedImageThumbnailPath { get; set; }
    public List<long> CategoryIds { get; set; } = new();
    public List<long> TagIds { get; set; } = new();
    public bool IsFeatured { get; set; }
    public int SortOrder { get; set; }

    // Image upload properties
    public byte[]? ImageFileBytes { get; set; }
    public string? ImageFileMime { get; set; }
    public string? ImageFileName { get; set; }
}
