PageInfo.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NEIntelligentControl2.Models
  7. {
  8. /// <summary>
  9. /// 分页信息
  10. /// </summary>
  11. /// <typeparam name="T"></typeparam>
  12. internal class PageInfo<T>
  13. {
  14. /// <summary>
  15. /// 元素总数
  16. /// </summary>
  17. public int TotalElements { get; set; }
  18. /// <summary>
  19. /// 总页数
  20. /// </summary>
  21. public int TotalPages { get; set; }
  22. /// <summary>
  23. /// 是否是第一页
  24. /// </summary>
  25. public bool Last { get; set; }
  26. /// <summary>
  27. /// 是否是第一页
  28. /// </summary>
  29. public bool First { get; set; }
  30. /// <summary>
  31. /// 页数(从0开始)
  32. /// </summary>
  33. public int Number { get; set; }
  34. /// <summary>
  35. /// 每页大小
  36. /// </summary>
  37. public int Size { get; set; }
  38. /// <summary>
  39. /// 本页数据数量
  40. /// </summary>
  41. public int NumberOfElements { get; set; }
  42. /// <summary>
  43. /// 内容
  44. /// </summary>
  45. public List<T> Content { get; set; }
  46. }
  47. }