MediaResult.cs 13 KB

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