MediaResult.cs 8.0 KB

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