update pagination

This commit is contained in:
2025-07-16 21:37:05 +07:00
parent f51fd5a5f7
commit b547c01787
13 changed files with 750 additions and 91 deletions

View File

@@ -0,0 +1,44 @@
using Managing.Domain.Backtests;
namespace Managing.Api.Models.Requests;
/// <summary>
/// Response model for paginated backtest results
/// </summary>
public class PaginatedBacktestsResponse
{
/// <summary>
/// The list of backtests for the current page
/// </summary>
public IEnumerable<Backtest> Backtests { get; set; } = new List<Backtest>();
/// <summary>
/// Total number of backtests across all pages
/// </summary>
public int TotalCount { get; set; }
/// <summary>
/// Current page number
/// </summary>
public int CurrentPage { get; set; }
/// <summary>
/// Number of items per page
/// </summary>
public int PageSize { get; set; }
/// <summary>
/// Total number of pages
/// </summary>
public int TotalPages { get; set; }
/// <summary>
/// Whether there are more pages available
/// </summary>
public bool HasNextPage { get; set; }
/// <summary>
/// Whether there are previous pages available
/// </summary>
public bool HasPreviousPage { get; set; }
}