MediaResult.cs 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. using System;
  2. using System.Collections.Generic;
  3. using GxPress.EnumConst;
  4. using GxPress.Result.Category;
  5. namespace GxPress.Result.Media
  6. {
  7. public class MediaResult
  8. {
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. public int Id { get; set; }
  13. /// <summary>
  14. /// 媒体类型
  15. /// Article=1,
  16. //书籍
  17. //Book = 2,
  18. ////课程
  19. //Curriculum = 3,
  20. ////音频
  21. //Audio = 4,
  22. ////期刊
  23. //Journal = 5,
  24. ////视频
  25. //Video=6
  26. /// </summary>
  27. public int MediaType { get; set; }
  28. /// <summary>
  29. /// 标题
  30. /// </summary>
  31. public string Title { get; set; }
  32. /// <summary>
  33. /// 标题图片
  34. /// </summary>
  35. public string ImageUrls { get; set; }
  36. /// <summary>
  37. /// 简介
  38. /// </summary>
  39. public string Summary { get; set; }
  40. /// <summary>
  41. /// 作者
  42. /// </summary>
  43. public string Author { get; set; }
  44. /// <summary>
  45. /// 名师ID
  46. /// </summary>
  47. /// <value></value>
  48. public int TeacherId { get; set; }
  49. /// <summary>
  50. /// 来源
  51. /// </summary>
  52. public string Source { get; set; }
  53. /// <summary>
  54. /// Json内容
  55. /// </summary>
  56. public string Blocks { get; set; }
  57. /// <summary>
  58. /// 审核状态 1 2
  59. /// </summary>
  60. public int IsChecked { get; set; }
  61. /// <summary>
  62. /// 添加时间
  63. /// </summary>
  64. public string AddDate { get; set; }
  65. /// <summary>
  66. /// 排序
  67. /// </summary>
  68. public int Sort { get; set; }
  69. /// <summary>
  70. /// 文章阅读量
  71. /// </summary>
  72. public int ReadCount { get; set; }
  73. /// <summary>
  74. /// 是否置顶 1置顶 2取消
  75. /// </summary>
  76. public int IsTop { get; set; }
  77. /// <summary>
  78. /// 分类ID
  79. /// </summary>
  80. public List<string> CategoryId { get; set; }
  81. /// <summary>
  82. /// 完整分类ID
  83. /// </summary>
  84. public List<string> FullCategoryId { get; set; }
  85. /// <summary>
  86. /// 分类名称
  87. /// </summary>
  88. /// <value></value>
  89. public List<string> CategoryName { get; set; }
  90. /// <summary>
  91. /// 标签ID
  92. /// </summary>
  93. public int LableId { get; set; }
  94. /// <summary>
  95. /// 是否推荐 1 设置 2取消
  96. /// </summary>
  97. public int IsRecommend { get; set; }
  98. /// <summary>
  99. /// 出版社
  100. /// </summary>
  101. public string Press { get; set; }
  102. /// <summary>
  103. /// 出版时间
  104. /// </summary>
  105. public string PublishTime { get; set; }
  106. /// <summary>
  107. /// 媒体类
  108. /// </summary>
  109. public List<MediaLibraryResult> MediaLibraryResults { get; set; }
  110. /// <summary>
  111. /// 媒体标签
  112. /// </summary>
  113. /// <value></value>
  114. public List<MediaLableResult> MediaLableResults { get; set; }
  115. /// <summary>
  116. /// 操作人ID
  117. /// </summary>
  118. /// <value></value>
  119. public int AdminId { get; set; }
  120. /// <summary>
  121. /// 操作人
  122. /// </summary>
  123. /// <value></value>
  124. public string Creator { get; set; }
  125. /// <summary>
  126. /// ios折扣价格打折
  127. /// </summary>
  128. public decimal IosDiscountPrice { get; set; }
  129. /// <summary>
  130. /// IOS价格
  131. /// </summary>
  132. public decimal IosPrice { get; set; }
  133. /// <summary>
  134. /// 其他折扣价格打折
  135. /// </summary>
  136. public decimal OtherDiscountPrice { get; set; }
  137. /// <summary>
  138. /// 其他价格
  139. /// </summary>
  140. public decimal OtherPrice { get; set; }
  141. /// <summary>
  142. /// 免费类容占比
  143. /// </summary>
  144. /// <value></value>
  145. public decimal FreeProportion { get; set; }
  146. /// <summary>
  147. /// 类型 名栏 公众号 期刊
  148. /// </summary>
  149. /// <value></value>
  150. public AttachTypeConst AttachType { get; set; }
  151. /// <summary>
  152. /// 类型 1名栏 2公众号
  153. /// </summary>
  154. /// <value></value>
  155. public int AttachId { get; set; }
  156. /// <summary>
  157. /// 关联的媒体ID
  158. /// </summary>
  159. /// <value></value>
  160. public int MediaId { get; set; }
  161. /// <summary>
  162. /// 关联的媒体标题
  163. /// </summary>
  164. /// <value></value>
  165. public string MediaTitle { get; set; }
  166. /// <summary>
  167. /// 刊期年
  168. /// </summary>
  169. /// <value></value>
  170. public string JournalsYear { get; set; }
  171. /// <summary>
  172. /// 刊期期数
  173. /// </summary>
  174. /// <value></value>
  175. public int JournalsCategory { get; set; }
  176. /// <summary>
  177. /// 所有类别
  178. /// </summary>
  179. /// <value></value>
  180. public List<CategoryResult> CategoryResults { get; set; }
  181. }
  182. /// <summary>
  183. ///
  184. /// </summary>
  185. public class MediaLibraryResult
  186. {
  187. /// <summary>
  188. /// 媒体ID
  189. /// </summary>
  190. /// <value></value>
  191. public int MediaId { get; set; }
  192. /// <summary>
  193. /// 文件路径
  194. /// </summary>
  195. public string FileUrl { get; set; }
  196. /// <summary>
  197. /// 文件名称
  198. /// </summary>
  199. public string Name { get; set; }
  200. /// <summary>
  201. /// 排序
  202. /// </summary>
  203. public int Sort { get; set; }
  204. /// <summary>
  205. /// 章节名称
  206. /// </summary>
  207. /// <value></value>
  208. public string SectionName { get; set; }
  209. /// <summary>
  210. /// 类型 1 file 2 audio
  211. /// </summary>
  212. /// <value></value>
  213. public int TypeId { get; set; }
  214. }
  215. /// <summary>
  216. /// 媒体标签
  217. /// </summary>
  218. public class MediaLableResult
  219. {
  220. /// <summary>
  221. /// 媒体ID
  222. /// </summary>
  223. /// <value></value>
  224. public int MediaId { get; set; }
  225. /// <summary>
  226. /// 标签ID
  227. /// </summary>
  228. public string LableId { get; set; }
  229. /// <summary>
  230. /// 标签名称
  231. /// </summary>
  232. public string LableName { get; set; }
  233. }
  234. }