MediaResult.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. using System;
  2. using System.Collections.Generic;
  3. using GxPress.EnumConst;
  4. using GxPress.Result.Category;
  5. namespace GxPress.Result.Media
  6. {
  7. /// <summary>
  8. /// 导航显示
  9. /// </summary>
  10. public class NavigationMediaResult
  11. {
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. /// <value></value>
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 编号
  19. /// </summary>
  20. /// <value></value>
  21. public string AutoNumber { get; set; }
  22. /// <summary>
  23. /// 媒体类型
  24. /// </summary>
  25. public int MediaType { get; set; }
  26. /// <summary>
  27. /// 标题
  28. /// </summary>
  29. public string Title { get; set; }
  30. /// <summary>
  31. /// 标题图片
  32. /// </summary>
  33. public string ImageUrls { get; set; }
  34. /// <summary>
  35. /// 简介
  36. /// </summary>
  37. public string Summary { get; set; }
  38. /// <summary>
  39. /// 作者
  40. /// </summary>
  41. public string Author { get; set; }
  42. /// <summary>
  43. /// 名师ID
  44. /// </summary>
  45. /// <value></value>
  46. public int TeacherId { get; set; }
  47. }
  48. /// <summary>
  49. /// 排行榜
  50. /// </summary>
  51. public class RankingListResult
  52. {
  53. /// <summary>
  54. ///
  55. /// </summary>
  56. /// <value></value>
  57. public int Id { get; set; }
  58. /// <summary>
  59. /// 编号
  60. /// </summary>
  61. /// <value></value>
  62. public string AutoNumber { get; set; }
  63. /// <summary>
  64. /// 媒体类型
  65. /// </summary>
  66. public int MediaType { get; set; }
  67. /// <summary>
  68. /// 标题
  69. /// </summary>
  70. public string Title { get; set; }
  71. /// <summary>
  72. /// 标题图片
  73. /// </summary>
  74. public string ImageUrls { get; set; }
  75. /// <summary>
  76. /// 简介
  77. /// </summary>
  78. public string Summary { get; set; }
  79. /// <summary>
  80. /// 作者
  81. /// </summary>
  82. public string Author { get; set; }
  83. /// <summary>
  84. /// 名师ID
  85. /// </summary>
  86. /// <value></value>
  87. public int TeacherId { get; set; }
  88. /// <summary>
  89. /// 评分
  90. /// </summary>
  91. public decimal CommentScore { get; set; }
  92. }
  93. public class RankingListCategoryResult
  94. {
  95. public IEnumerable<RankingListResult> RankingListResults { get; set; }
  96. public Dictionary<int, string> Category { get; set; }
  97. }
  98. /// <summary>
  99. /// 媒体
  100. /// </summary>
  101. public class MediaResult
  102. {
  103. /// <summary>
  104. /// 编号
  105. /// </summary>
  106. /// <value></value>
  107. public string AutoNumber { get; set; }
  108. /// <summary>
  109. ///
  110. /// </summary>
  111. public int Id { get; set; }
  112. /// <summary>
  113. /// 媒体类型
  114. /// Article=1,
  115. //书籍
  116. //Book = 2,
  117. ////课程
  118. //Curriculum = 3,
  119. ////音频
  120. //Audio = 4,
  121. ////期刊
  122. //Journal = 5,
  123. ////视频
  124. //Video=6
  125. /// </summary>
  126. public int MediaType { get; set; }
  127. /// <summary>
  128. /// 标题
  129. /// </summary>
  130. public string Title { get; set; }
  131. /// <summary>
  132. /// 标题图片
  133. /// </summary>
  134. public string ImageUrls { get; set; }
  135. /// <summary>
  136. /// 简介
  137. /// </summary>
  138. public string Summary { get; set; }
  139. /// <summary>
  140. /// 作者
  141. /// </summary>
  142. public string Author { get; set; }
  143. /// <summary>
  144. /// 名师ID
  145. /// </summary>
  146. /// <value></value>
  147. public int TeacherId { get; set; }
  148. /// <summary>
  149. /// 来源
  150. /// </summary>
  151. public string Source { get; set; }
  152. /// <summary>
  153. /// Json内容
  154. /// </summary>
  155. public string Blocks { get; set; }
  156. /// <summary>
  157. /// 审核状态 1 2
  158. /// </summary>
  159. public int IsChecked { get; set; }
  160. /// <summary>
  161. /// 添加时间
  162. /// </summary>
  163. public string AddDate { get; set; }
  164. /// <summary>
  165. /// 排序
  166. /// </summary>
  167. public int Sort { get; set; }
  168. /// <summary>
  169. /// 文章阅读量
  170. /// </summary>
  171. public int ReadCount { get; set; }
  172. /// <summary>
  173. /// 是否置顶 1置顶 2取消
  174. /// </summary>
  175. public int IsTop { get; set; }
  176. /// <summary>
  177. /// 分类ID
  178. /// </summary>
  179. public List<string> CategoryId { get; set; }
  180. /// <summary>
  181. /// 完整分类ID
  182. /// </summary>
  183. public List<string> FullCategoryId { get; set; }
  184. /// <summary>
  185. /// 分类名称
  186. /// </summary>
  187. /// <value></value>
  188. public List<string> CategoryName { get; set; }
  189. /// <summary>
  190. /// 标签ID
  191. /// </summary>
  192. public int LableId { get; set; }
  193. /// <summary>
  194. /// 是否推荐 1 设置 2取消
  195. /// </summary>
  196. public int IsRecommend { get; set; }
  197. /// <summary>
  198. /// 出版社
  199. /// </summary>
  200. public string Press { get; set; }
  201. /// <summary>
  202. /// 出版时间
  203. /// </summary>
  204. public string PublishTime { get; set; }
  205. /// <summary>
  206. /// 媒体类
  207. /// </summary>
  208. public List<MediaLibraryResult> MediaLibraryResults { get; set; }
  209. /// <summary>
  210. /// 媒体标签
  211. /// </summary>
  212. /// <value></value>
  213. public List<MediaLableResult> MediaLableResults { get; set; }
  214. /// <summary>
  215. /// 操作人ID
  216. /// </summary>
  217. /// <value></value>
  218. public int AdminId { get; set; }
  219. /// <summary>
  220. /// 操作人
  221. /// </summary>
  222. /// <value></value>
  223. public string Creator { get; set; }
  224. /// <summary>
  225. /// ios折扣价格打折
  226. /// </summary>
  227. public decimal IosDiscountPrice { get; set; }
  228. /// <summary>
  229. /// IOS价格
  230. /// </summary>
  231. public decimal IosPrice { get; set; }
  232. /// <summary>
  233. /// 其他折扣价格打折
  234. /// </summary>
  235. public decimal OtherDiscountPrice { get; set; }
  236. /// <summary>
  237. /// 其他价格
  238. /// </summary>
  239. public decimal OtherPrice { get; set; }
  240. /// <summary>
  241. /// 免费类容占比
  242. /// </summary>
  243. /// <value></value>
  244. public decimal FreeProportion { get; set; }
  245. /// <summary>
  246. /// 类型 名栏 公众号 期刊
  247. /// </summary>
  248. /// <value></value>
  249. public AttachTypeConst AttachType { get; set; }
  250. /// <summary>
  251. /// 类型 1名栏 2公众号
  252. /// </summary>
  253. /// <value></value>
  254. public int AttachId { get; set; }
  255. /// <summary>
  256. /// 关联的媒体ID
  257. /// </summary>
  258. /// <value></value>
  259. public int MediaId { get; set; }
  260. /// <summary>
  261. /// 关联的媒体标题
  262. /// </summary>
  263. /// <value></value>
  264. public string MediaTitle { get; set; }
  265. /// <summary>
  266. /// 刊期年
  267. /// </summary>
  268. /// <value></value>
  269. public string JournalsYear { get; set; }
  270. /// <summary>
  271. /// 刊期期数
  272. /// </summary>
  273. /// <value></value>
  274. public int JournalsCategory { get; set; }
  275. /// <summary>
  276. /// 所有类别
  277. /// </summary>
  278. /// <value></value>
  279. public List<CategoryResult> CategoryResults { get; set; }
  280. /// <summary>
  281. /// 收藏次数
  282. /// </summary>
  283. public int CollectCount { get; set; }
  284. /// <summary>
  285. /// 转发数量
  286. /// </summary>
  287. /// <value></value>
  288. public int RetransmissionCount { get; set; }
  289. /// <summary>
  290. /// 评论数量
  291. /// </summary>
  292. /// <value></value>
  293. public int CommentCount { get; set; }
  294. /// <summary>
  295. /// 销售总金额
  296. /// </summary>
  297. /// <value></value>
  298. public decimal SellAmount { get; set; }
  299. /// <summary>
  300. /// 订单数量
  301. /// </summary>
  302. /// <value></value>
  303. public int OrderCount { get; set; }
  304. /// <summary>
  305. /// 书籍目录
  306. /// </summary>
  307. /// <value></value>
  308. public List<BookCatalogResult> BookCatalogResults { get; set; }
  309. }
  310. /// <summary>
  311. /// 书籍目录
  312. /// </summary>
  313. public class MediaLibraryResult
  314. {
  315. /// <summary>
  316. ///
  317. /// </summary>
  318. /// <value></value>
  319. public int Id { get; set; }
  320. /// <summary>
  321. /// 媒体ID
  322. /// </summary>
  323. /// <value></value>
  324. public int MediaId { get; set; }
  325. /// <summary>
  326. /// 文件路径
  327. /// </summary>
  328. public string FileUrl { get; set; }
  329. /// <summary>
  330. /// 文件名称
  331. /// </summary>
  332. public string Name { get; set; }
  333. /// <summary>
  334. /// 排序
  335. /// </summary>
  336. public int Sort { get; set; }
  337. /// <summary>
  338. /// 章节名称
  339. /// </summary>
  340. /// <value></value>
  341. public string SectionName { get; set; }
  342. /// <summary>
  343. /// 类型 1 file 2 audio
  344. /// </summary>
  345. /// <value></value>
  346. public int TypeId { get; set; }
  347. /// <summary>
  348. /// 章节Id
  349. /// </summary>
  350. /// <value></value>
  351. public string SectionId { get; set; }
  352. }
  353. /// <summary>
  354. /// 媒体标签
  355. /// </summary>
  356. public class MediaLableResult
  357. {
  358. /// <summary>
  359. /// 媒体ID
  360. /// </summary>
  361. /// <value></value>
  362. public int MediaId { get; set; }
  363. /// <summary>
  364. /// 标签ID
  365. /// </summary>
  366. public int LableId { get; set; }
  367. /// <summary>
  368. /// 标签名称
  369. /// </summary>
  370. public string LableName { get; set; }
  371. }
  372. /// <summary>
  373. /// 笔记显示摘录
  374. /// </summary>
  375. public class MediaNoteResult
  376. {
  377. /// <summary>
  378. ///
  379. /// </summary>
  380. /// <value></value>
  381. public int Id { get; set; }
  382. /// <summary>
  383. /// 标题
  384. /// </summary>
  385. public string Title { get; set; }
  386. /// <summary>
  387. /// 标题图片
  388. /// </summary>
  389. public string ImageUrls { get; set; }
  390. /// <summary>
  391. /// 作者
  392. /// </summary>
  393. public string Author { get; set; }
  394. }
  395. /// <summary>
  396. /// 大咖讲座
  397. /// </summary>
  398. public class MediaCathedraResult
  399. {
  400. /// <summary>
  401. ///
  402. /// </summary>
  403. /// <value></value>
  404. public int Id { get; set; }
  405. /// <summary>
  406. /// 标题
  407. /// </summary>
  408. public string Title { get; set; }
  409. /// <summary>
  410. /// 标题图片
  411. /// </summary>
  412. public string ImageUrls { get; set; }
  413. /// <summary>
  414. /// 作者
  415. /// </summary>
  416. public string Author { get; set; }
  417. /// <summary>
  418. /// 阅读量
  419. /// </summary>
  420. /// <value></value>
  421. public int ReadCount { get; set; }
  422. /// <summary>
  423. /// 创建时间
  424. /// </summary>
  425. /// <value></value>
  426. public DateTime? CreatedDate { get; set; }
  427. /// <summary>
  428. /// 时长
  429. /// </summary>
  430. /// <value></value>
  431. public string Duration { get; set; }
  432. }
  433. }