mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-03 02:18:00 +08:00
24 lines
651 B
C#
24 lines
651 B
C#
namespace NetAdmin.Domain.Dto.Dependency;
|
|
|
|
/// <summary>
|
|
/// 响应:分页查询
|
|
/// </summary>
|
|
public sealed record PagedQueryRsp<T>(int Page, int PageSize, long Total, IEnumerable<T> Rows) : IPagedInfo
|
|
where T : DataAbstraction
|
|
{
|
|
/// <summary>
|
|
/// 数据行
|
|
/// </summary>
|
|
public IEnumerable<T> Rows { get; } = Rows;
|
|
|
|
/// <inheritdoc cref="IPagedInfo.Page" />
|
|
public int Page { get; init; } = Page;
|
|
|
|
/// <inheritdoc cref="IPagedInfo.PageSize" />
|
|
public int PageSize { get; init; } = PageSize;
|
|
|
|
/// <summary>
|
|
/// 数据总条
|
|
/// </summary>
|
|
public long Total { get; init; } = Total;
|
|
} |