namespace Meezi.Shared;

public record ApiResponse<T>(bool Success, T? Data, ApiError? Error = null);

public record ApiError(string Code, string Message, string? Field = null);

public record PagedMeta(int Total, int Page, int PageSize);

public record PagedApiResponse<T>(
    bool Success,
    IReadOnlyList<T>? Data,
    PagedMeta? Meta,
    ApiError? Error = null);
