using Femto.Common;
using Femto.Common.Domain;
using Femto.Modules.Blog.Application.Queries.GetPosts.Dto;

namespace Femto.Modules.Blog.Application.Commands.CreatePost;

public record CreatePostCommand(
    Guid AuthorId,
    string Content,
    IEnumerable<CreatePostMedia> Media,
    bool? IsPublic,
    CurrentUser CurrentUser
) : ICommand<PostDto>;

public record CreatePostMedia(
    Guid MediaId,
    Uri Url,
    string? Type,
    int Order,
    int? Width,
    int? Height
);
