人民医院API

PageData.cs 788B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace RMYY_CallCenter_Api.Model
  7. {
  8. public class PageData<T> where T : class, new()
  9. {
  10. /// <summary>
  11. /// 总记录数
  12. /// </summary>
  13. public int Total { get; set; }
  14. /// <summary>
  15. /// 当前页数据集合
  16. /// </summary>
  17. public List<T> Rows { get; set; }
  18. /// <summary>
  19. /// 页数
  20. /// </summary>
  21. public int Count { get; set; }
  22. public PageData()
  23. {
  24. }
  25. public PageData(int Total, int Count, List<T> Rows = null)
  26. {
  27. this.Total = Total;
  28. this.Count = Count;
  29. this.Rows = Rows;
  30. }
  31. }
  32. }