zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/Models/Generics/PagedRequestModel.cs
2023-12-05 17:22:48 +08:00

16 lines
514 B
C#

using Microsoft.AspNetCore.Mvc;
using ZeroFramework.IdentityServer.API.Constants;
using ZeroFramework.IdentityServer.API.Extensions;
namespace ZeroFramework.IdentityServer.API.Models.Generics
{
public record PagedRequestModel
{
[ModelBinder(BinderType = typeof(SortingModelBinder))]
public virtual IEnumerable<SortingDescriptor>? Sorter { get; set; }
public int PageNumber { get; set; } = 1;
public int PageSize { get; set; } = PagingConstants.DefaultPageSize;
}
}