namespace Application.Features.Api.Forum.Post.Search;

public sealed record Response(int Total, List<Response.Row> Speaker, List<Response.Row> Notice, List<Response.Row> List)
{
    public sealed record Row(
        int Num,
        int ID,
        int BoardID,
        string BoardName,
        int? BoardPrefixID,
        BoardPrefixData? BoardPrefix,
        string Subject,
        string? Thumbnail,
        string? Name,
        string? SID,
        bool IsNotice,
        bool IsSecret,
        bool IsReply,
        bool IsSpeaker,
        bool IsAnonymous,
        bool IsDeleted,
        int Views,
        int Likes,
        int Dislikes,
        int Comments,
        byte Images,
        byte Medias,
        byte Files,
        byte Tags,
        DateTime? UpdatedAt,
        DateTime CreatedAt
    );

    public sealed record BoardPrefixData(
        int ID,
        int BoardID,
        string Name,
        string? Color,
        int Posts
    );
}