PagedList.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System.Collections.Generic;
  2. namespace GxPress.Common.Page
  3. {
  4. /// <summary>
  5. /// 分页数据实体类
  6. /// </summary>
  7. /// <typeparam name="TItem">数据对象的实体类型</typeparam>
  8. public class PagedList<TItem>
  9. {
  10. /// <summary>
  11. /// 当前页的数据
  12. /// </summary>
  13. public IEnumerable<TItem> Items { get; set; }
  14. /// <summary>
  15. /// 总数
  16. /// </summary>
  17. public int Total { get; set; }
  18. /// <summary>
  19. /// 是否收藏
  20. /// </summary>
  21. public bool IsCollect { get; set; }
  22. /// <summary>
  23. /// 转发数量
  24. /// </summary>
  25. public int RetransmissionCount { get; set; }
  26. /// <summary>
  27. /// 权限
  28. /// </summary>
  29. /// <value></value>
  30. public int RoleId { get; set; }
  31. /// <summary>
  32. /// 作者
  33. /// </summary>
  34. /// <value></value>
  35. public string Author { get; set; }
  36. /// <summary>
  37. /// 是否存在草稿
  38. /// </summary>
  39. /// <value></value>
  40. public bool IsDraft { get; set; }
  41. /// <summary>
  42. /// 草稿ID
  43. /// </summary>
  44. /// <value></value>
  45. public int DraftId { get; set; }
  46. /// <summary>
  47. /// 草稿数量
  48. /// </summary>
  49. /// <value></value>
  50. public int DraftCount { get; set; }
  51. /// <summary>
  52. /// 父级ID
  53. /// </summary>
  54. /// <value></value>
  55. public int ParentId { get; set; }
  56. /// <summary>
  57. /// 是否成员
  58. /// </summary>
  59. /// <value></value>
  60. public bool IsUser { get; set; }
  61. /// <summary>
  62. /// 是否系统默认
  63. /// </summary>
  64. /// <value></value>
  65. public bool IsSystemDefault { get; set; }
  66. }
  67. }