Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/Dtos/Common/PagedResultWithPageDto.cs 758 Bytes
59e51671   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  namespace FoodLabeling.Application.Contracts.Dtos.Common;
  
  /// <summary>
  /// 分页返回(包含当前页、总页数)
  /// </summary>
  /// <typeparam name="TItem">列表项类型</typeparam>
  public class PagedResultWithPageDto<TItem>
  {
      /// <summary>
      /// 当前页码(从 1 开始)
      /// </summary>
      public int PageIndex { get; set; }
  
      /// <summary>
      /// 每页条数
      /// </summary>
      public int PageSize { get; set; }
  
      /// <summary>
      /// 总条数
      /// </summary>
      public long TotalCount { get; set; }
  
      /// <summary>
      /// 总页数
      /// </summary>
      public int TotalPages { get; set; }
  
      /// <summary>
      /// 列表数据
      /// </summary>
      public List<TItem> Items { get; set; } = new();
  }