MediaResult.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  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. /// <summary>
  48. /// 阅读量
  49. /// </summary>
  50. /// <value></value>
  51. public int ReadCount { get; set; }
  52. /// <summary>
  53. /// 创建时间
  54. /// </summary>
  55. /// <value></value>
  56. public DateTime? CreatedDate { get; set; }
  57. /// <summary>
  58. /// 收藏数量
  59. /// </summary>
  60. /// <value></value>
  61. public int CollectCount { get; set; }
  62. }
  63. /// <summary>
  64. /// 排行榜
  65. /// </summary>
  66. public class RankingListResult
  67. {
  68. /// <summary>
  69. ///
  70. /// </summary>
  71. /// <value></value>
  72. public int Id { get; set; }
  73. /// <summary>
  74. /// 编号
  75. /// </summary>
  76. /// <value></value>
  77. public string AutoNumber { get; set; }
  78. /// <summary>
  79. /// 媒体类型
  80. /// </summary>
  81. public int MediaType { get; set; }
  82. /// <summary>
  83. /// 标题
  84. /// </summary>
  85. public string Title { get; set; }
  86. /// <summary>
  87. /// 标题图片
  88. /// </summary>
  89. public string ImageUrls { get; set; }
  90. /// <summary>
  91. /// 简介
  92. /// </summary>
  93. public string Summary { get; set; }
  94. /// <summary>
  95. /// 作者
  96. /// </summary>
  97. public string Author { get; set; }
  98. /// <summary>
  99. /// 名师ID
  100. /// </summary>
  101. /// <value></value>
  102. public int TeacherId { get; set; }
  103. /// <summary>
  104. /// 评分
  105. /// </summary>
  106. public decimal CommentScore { get; set; }
  107. /// <summary>
  108. /// 阅读量
  109. /// </summary>
  110. /// <value></value>
  111. public int ReadCount { get; set; }
  112. /// <summary>
  113. /// 创建时间
  114. /// </summary>
  115. /// <value></value>
  116. public DateTime? CreatedDate { get; set; }
  117. /// <summary>
  118. /// 时长
  119. /// </summary>
  120. /// <value></value>
  121. public string Duration { get; set; }
  122. }
  123. public class RankingListCategoryResult
  124. {
  125. public IEnumerable<RankingListResult> RankingListResults { get; set; }
  126. public Dictionary<int, string> Category { get; set; }
  127. }
  128. /// <summary>
  129. /// 媒体
  130. /// </summary>
  131. public class MediaResult
  132. {
  133. /// <summary>
  134. /// 编号
  135. /// </summary>
  136. /// <value></value>
  137. public string AutoNumber { get; set; }
  138. /// <summary>
  139. ///
  140. /// </summary>
  141. public int Id { get; set; }
  142. /// <summary>
  143. /// 媒体类型
  144. /// Article=1,
  145. //书籍
  146. //Book = 2,
  147. ////课程
  148. //Curriculum = 3,
  149. ////音频
  150. //Audio = 4,
  151. ////期刊
  152. //Journal = 5,
  153. ////视频
  154. //Video=6
  155. /// </summary>
  156. public int MediaType { get; set; }
  157. /// <summary>
  158. /// 标题
  159. /// </summary>
  160. public string Title { get; set; }
  161. /// <summary>
  162. /// 标题图片
  163. /// </summary>
  164. public string ImageUrls { get; set; }
  165. /// <summary>
  166. /// 简介
  167. /// </summary>
  168. public string Summary { get; set; }
  169. /// <summary>
  170. /// 作者
  171. /// </summary>
  172. public string Author { get; set; }
  173. /// <summary>
  174. /// 名师ID
  175. /// </summary>
  176. /// <value></value>
  177. public int TeacherId { get; set; }
  178. /// <summary>
  179. /// 来源
  180. /// </summary>
  181. public string Source { get; set; }
  182. /// <summary>
  183. /// Json内容
  184. /// </summary>
  185. public string Blocks { get; set; }
  186. /// <summary>
  187. /// 审核状态 1 2
  188. /// </summary>
  189. public int IsChecked { get; set; }
  190. /// <summary>
  191. /// 添加时间
  192. /// </summary>
  193. public string AddDate { get; set; }
  194. /// <summary>
  195. /// 排序
  196. /// </summary>
  197. public int Sort { get; set; }
  198. /// <summary>
  199. /// 文章阅读量
  200. /// </summary>
  201. public int ReadCount { get; set; }
  202. /// <summary>
  203. /// 是否置顶 1置顶 2取消
  204. /// </summary>
  205. public int IsTop { get; set; }
  206. /// <summary>
  207. /// 分类ID
  208. /// </summary>
  209. public List<string> CategoryId { get; set; }
  210. /// <summary>
  211. /// app内容导航
  212. /// </summary>
  213. /// <value></value>
  214. public int AppCategoryId { get; set; }
  215. /// <summary>
  216. /// 完整分类ID
  217. /// </summary>
  218. public List<string> FullCategoryId { get; set; }
  219. /// <summary>
  220. /// 分类名称
  221. /// </summary>
  222. /// <value></value>
  223. public List<string> CategoryName { get; set; }
  224. /// <summary>
  225. /// 标签ID
  226. /// </summary>
  227. public int LableId { get; set; }
  228. /// <summary>
  229. /// 是否推荐 1 设置 2取消
  230. /// </summary>
  231. public int IsRecommend { get; set; }
  232. /// <summary>
  233. /// 出版社
  234. /// </summary>
  235. public string Press { get; set; }
  236. /// <summary>
  237. /// 出版时间
  238. /// </summary>
  239. public string PublishTime { get; set; }
  240. /// <summary>
  241. /// 媒体类
  242. /// </summary>
  243. public List<MediaLibraryResult> MediaLibraryResults { get; set; }
  244. /// <summary>
  245. /// 媒体标签
  246. /// </summary>
  247. /// <value></value>
  248. public List<MediaLableResult> MediaLableResults { get; set; }
  249. /// <summary>
  250. /// 操作人ID
  251. /// </summary>
  252. /// <value></value>
  253. public int AdminId { get; set; }
  254. /// <summary>
  255. /// 操作人
  256. /// </summary>
  257. /// <value></value>
  258. public string Creator { get; set; }
  259. /// <summary>
  260. /// ios折扣价格打折
  261. /// </summary>
  262. public decimal IosDiscountPrice { get; set; }
  263. /// <summary>
  264. /// IOS价格
  265. /// </summary>
  266. public decimal IosPrice { get; set; }
  267. /// <summary>
  268. /// 其他折扣价格打折
  269. /// </summary>
  270. public decimal OtherDiscountPrice { get; set; }
  271. /// <summary>
  272. /// 其他价格
  273. /// </summary>
  274. public decimal OtherPrice { get; set; }
  275. /// <summary>
  276. /// 免费类容占比
  277. /// </summary>
  278. /// <value></value>
  279. public decimal FreeProportion { get; set; }
  280. /// <summary>
  281. /// 类型 名栏 公众号 期刊
  282. /// </summary>
  283. /// <value></value>
  284. public AttachTypeConst AttachType { get; set; }
  285. /// <summary>
  286. /// 类型 1名栏 2公众号
  287. /// </summary>
  288. /// <value></value>
  289. public int AttachId { get; set; }
  290. /// <summary>
  291. /// 关联的媒体ID
  292. /// </summary>
  293. /// <value></value>
  294. public int MediaId { get; set; }
  295. /// <summary>
  296. /// 关联的媒体标题
  297. /// </summary>
  298. /// <value></value>
  299. public string MediaTitle { get; set; }
  300. /// <summary>
  301. /// 刊期年
  302. /// </summary>
  303. /// <value></value>
  304. public string JournalsYear { get; set; }
  305. /// <summary>
  306. /// 刊期期数
  307. /// </summary>
  308. /// <value></value>
  309. public int JournalsCategory { get; set; }
  310. /// <summary>
  311. /// 所有类别
  312. /// </summary>
  313. /// <value></value>
  314. public List<CategoryResult> CategoryResults { get; set; }
  315. /// <summary>
  316. /// 收藏次数
  317. /// </summary>
  318. public int CollectCount { get; set; }
  319. /// <summary>
  320. /// 转发数量
  321. /// </summary>
  322. /// <value></value>
  323. public int RetransmissionCount { get; set; }
  324. /// <summary>
  325. /// 评论数量
  326. /// </summary>
  327. /// <value></value>
  328. public int CommentCount { get; set; }
  329. /// <summary>
  330. /// 销售总金额
  331. /// </summary>
  332. /// <value></value>
  333. public decimal SellAmount { get; set; }
  334. /// <summary>
  335. /// 订单数量
  336. /// </summary>
  337. /// <value></value>
  338. public int OrderCount { get; set; }
  339. /// <summary>
  340. /// 书籍目录
  341. /// </summary>
  342. /// <value></value>
  343. public List<BookCatalogResult> BookCatalogResults { get; set; }
  344. /// <summary>
  345. /// 是否习题 1 是 2否
  346. /// </summary>
  347. /// <value></value>
  348. public int IsExercises { get; set; }
  349. /// <summary>
  350. /// 是否购买
  351. /// </summary>
  352. /// <value></value>
  353. public bool IsBuy { get; set; }
  354. }
  355. /// <summary>
  356. /// 书籍目录
  357. /// </summary>
  358. public class MediaLibraryResult
  359. {
  360. /// <summary>
  361. ///
  362. /// </summary>
  363. /// <value></value>
  364. public int Id { get; set; }
  365. /// <summary>
  366. /// 媒体ID
  367. /// </summary>
  368. /// <value></value>
  369. public int MediaId { get; set; }
  370. /// <summary>
  371. /// 文件路径
  372. /// </summary>
  373. public string FileUrl { get; set; }
  374. /// <summary>
  375. /// 文件名称
  376. /// </summary>
  377. public string Name { get; set; }
  378. /// <summary>
  379. /// 排序
  380. /// </summary>
  381. public int Sort { get; set; }
  382. /// <summary>
  383. /// 章节名称
  384. /// </summary>
  385. /// <value></value>
  386. public string SectionName { get; set; }
  387. /// <summary>
  388. /// 类型 1 file 2 audio
  389. /// </summary>
  390. /// <value></value>
  391. public int TypeId { get; set; }
  392. /// <summary>
  393. /// 章节Id
  394. /// </summary>
  395. /// <value></value>
  396. public string SectionId { get; set; }
  397. }
  398. /// <summary>
  399. /// 媒体标签
  400. /// </summary>
  401. public class MediaLableResult
  402. {
  403. /// <summary>
  404. /// 媒体ID
  405. /// </summary>
  406. /// <value></value>
  407. public int MediaId { get; set; }
  408. /// <summary>
  409. /// 标签ID
  410. /// </summary>
  411. public int LableId { get; set; }
  412. /// <summary>
  413. /// 标签名称
  414. /// </summary>
  415. public string LableName { get; set; }
  416. }
  417. /// <summary>
  418. /// 笔记显示摘录
  419. /// </summary>
  420. public class MediaNoteResult
  421. {
  422. /// <summary>
  423. ///
  424. /// </summary>
  425. /// <value></value>
  426. public int Id { get; set; }
  427. /// <summary>
  428. /// 标题
  429. /// </summary>
  430. public string Title { get; set; }
  431. /// <summary>
  432. /// 标题图片
  433. /// </summary>
  434. public string ImageUrls { get; set; }
  435. /// <summary>
  436. /// 作者
  437. /// </summary>
  438. public string Author { get; set; }
  439. }
  440. /// <summary>
  441. /// 大咖讲座
  442. /// </summary>
  443. public class MediaCathedraResult
  444. {
  445. /// <summary>
  446. /// 简介
  447. /// </summary>
  448. public string Summary { get; set; }
  449. /// <summary>
  450. ///
  451. /// </summary>
  452. /// <value></value>
  453. public int Id { get; set; }
  454. /// <summary>
  455. /// 标题
  456. /// </summary>
  457. public string Title { get; set; }
  458. /// <summary>
  459. /// 标题图片
  460. /// </summary>
  461. public string ImageUrls { get; set; }
  462. /// <summary>
  463. /// 出版社
  464. /// </summary>
  465. /// <value></value>
  466. public string Press { get; set; }
  467. /// <summary>
  468. /// 作者
  469. /// </summary>
  470. public string Author { get; set; }
  471. /// <summary>
  472. /// 阅读量
  473. /// </summary>
  474. /// <value></value>
  475. public int ReadCount { get; set; }
  476. /// <summary>
  477. /// 创建时间
  478. /// </summary>
  479. /// <value></value>
  480. public DateTime? CreatedDate { get; set; }
  481. /// <summary>
  482. /// 时长
  483. /// </summary>
  484. /// <value></value>
  485. public string Duration { get; set; }
  486. /// <summary>
  487. /// 收藏数量
  488. /// </summary>
  489. /// <value></value>
  490. public int CollectCount { get; set; }
  491. /// <summary>
  492. /// 媒体类型
  493. /// </summary>
  494. public int MediaType { get; set; }
  495. }
  496. /// <summary>
  497. /// 每日技能
  498. /// </summary>
  499. public class SkillInfo
  500. {
  501. public int Id { get; set; }
  502. /// <summary>
  503. /// Json内容
  504. /// </summary>
  505. public string Blocks { get; set; }
  506. /// <summary>
  507. /// 类型
  508. /// </summary>
  509. /// <value></value>
  510. public int MediaType { get; set; }
  511. }
  512. /// <summary>
  513. /// 榜单
  514. /// </summary>
  515. public class MediaRankingResult
  516. {
  517. /// <summary>
  518. ///
  519. /// </summary>
  520. /// <value></value>
  521. public string Name { get; set; }
  522. /// <summary>
  523. ///
  524. /// </summary>
  525. /// <value></value>
  526. public int MediaType { get; set; }
  527. /// <summary>
  528. ///
  529. /// </summary>
  530. /// <value></value>
  531. public IEnumerable<RankingListResult> Items { get; set; }
  532. }
  533. /// <summary>
  534. /// 明栏
  535. /// </summary>
  536. public class MediaStarLableResult
  537. {
  538. /// <summary>
  539. /// 名栏目ID
  540. /// </summary>
  541. /// <value></value>
  542. public int Id { get; set; }
  543. /// <summary>
  544. /// 明栏名称
  545. /// </summary>
  546. /// <value></value>
  547. public string Name { get; set; }
  548. /// <summary>
  549. /// 明栏数据
  550. /// </summary>
  551. /// <value></value>
  552. public IEnumerable<MediaCathedraResult> Items { get; set; }
  553. }
  554. }