namespace Fengling.Console.Models.Dtos; public class PaginationQueryDto { public int Page { get; set; } = 1; public int PageSize { get; set; } = 10; public string? SortBy { get; set; } public string? SortOrder { get; set; } } public class PagedResultDto { public List Items { get; set; } = new(); public int TotalCount { get; set; } public int Page { get; set; } public int PageSize { get; set; } public int TotalPages => PageSize > 0 ? (int)Math.Ceiling((double)TotalCount / PageSize) : 0; public bool HasNextPage => Page < TotalPages; public bool HasPreviousPage => Page > 1; }