ArticleResult.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. using System;
  2. using System.Collections.Generic;
  3. using GxPress.Common.Page;
  4. using GxPress.Entity;
  5. using GxPress.Entity.Article;
  6. using GxPress.Entity.WorkFlow;
  7. using GxPress.EnumConst;
  8. using GxPress.Result.App.Analyze;
  9. namespace GxPress.Result.Article
  10. {
  11. /// <summary>
  12. /// 文章
  13. /// </summary>
  14. public class ArticleResult : FlowTodoResult
  15. {
  16. /// <summary>
  17. /// 文章ID
  18. /// </summary>
  19. public int Id { get; set; }
  20. /// <summary>
  21. /// 标题
  22. /// </summary>
  23. public string Title { get; set; }
  24. /// <summary>
  25. /// 组id
  26. /// </summary>
  27. public int GroupId { get; set; }
  28. /// <summary>
  29. /// 标题图片
  30. /// </summary>
  31. public IEnumerable<string> ImageUrls { get; set; }
  32. /// <summary>
  33. /// 简介
  34. /// </summary>
  35. public string Summary { get; set; }
  36. /// <summary>
  37. /// 作者
  38. /// </summary>
  39. public string Author { get; set; }
  40. /// <summary>
  41. /// 来源
  42. /// </summary>
  43. public string Source { get; set; }
  44. /// <summary>
  45. /// Json内容
  46. /// </summary>
  47. public IEnumerable<Block> ArticleBlocks { get; set; }
  48. /// <summary>
  49. /// 新版Json内容
  50. /// </summary>
  51. public ArticleContent ArticleContent { get; set; }
  52. /// <summary>
  53. /// 审核状态
  54. /// </summary>
  55. public bool IsChecked { get; set; }
  56. /// <summary>
  57. /// 添加时间
  58. /// </summary>
  59. public DateTime AddDate { get; set; }
  60. /// <summary>
  61. /// 排序
  62. /// </summary>
  63. public int Sort { get; set; }
  64. /// <summary>
  65. /// 评论数量
  66. /// </summary>
  67. public int CommentCount { get; set; }
  68. /// <summary>
  69. /// 收藏数量
  70. /// </summary>
  71. public int CollectCount { get; set; }
  72. /// <summary>
  73. /// 转发数量
  74. /// </summary>
  75. public int RetransmissionCount { get; set; }
  76. /// <summary>
  77. /// 点赞数量
  78. /// </summary>
  79. public int PraiseCount { get; set; }
  80. /// <summary>
  81. /// 文章类型名称
  82. /// </summary>
  83. public string GroupName { get; set; }
  84. /// <summary>
  85. /// 文章点赞数据
  86. /// </summary>
  87. public PagedList<PraisePageResult> ArticlePraisePagedList { get; set; }
  88. /// <summary>
  89. /// 文章阅读量
  90. /// </summary>
  91. public int ReadCount { get; set; }
  92. /// <summary>
  93. /// 是否置顶
  94. /// </summary>
  95. public bool IsTop { get; set; }
  96. /// <summary>
  97. /// 是否收藏
  98. /// </summary>
  99. public bool IsCollect { get; set; }
  100. /// <summary>
  101. /// 是否点赞
  102. /// </summary>
  103. public bool IsPraise { get; set; }
  104. /// <summary>
  105. /// 是否转发
  106. /// </summary>
  107. public bool IsRetransmission { get; set; }
  108. /// <summary>
  109. /// 创建时间
  110. /// </summary>
  111. public DateTime? CreatedDate { get; set; }
  112. /// <summary>
  113. /// 标签
  114. /// </summary>
  115. /// <value></value>
  116. public IEnumerable<Result.App.ArticleLabel.ArticleInnerLabelResult> ArticleInnerLabelsResult { get; set; }
  117. /// <summary>
  118. /// 来源类型 0 文章 1 待办
  119. /// </summary>
  120. /// <value></value>
  121. public int SourceType { get; set; }
  122. /// <summary>
  123. /// 是否老版文本编辑器
  124. /// </summary>
  125. /// <value></value>
  126. public bool IsBlocks { get; set; }
  127. }
  128. /// <summary>
  129. /// 待办工作事项
  130. /// </summary>
  131. public class FlowTodoResult : FlowTodo
  132. {
  133. public FlowState State { get; set; }
  134. /// <summary>
  135. /// 当前页
  136. /// </summary>
  137. public string Title { get; set; }
  138. public string AvatarUrl { get; set; }
  139. /// <summary>
  140. /// 每页显示多少项
  141. /// </summary>
  142. public List<string> Summaries { get; set; }
  143. }
  144. }