MediaResult.cs 10 KB

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