MediaRequest.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. using System;
  2. using System.Collections.Generic;
  3. using GxPress.Common.Page;
  4. namespace GxPress.Request.Media
  5. {
  6. /// <summary>
  7. /// 媒体
  8. /// </summary>
  9. public class MediaRequest
  10. {
  11. /// <summary>
  12. /// 媒体类型
  13. /// Article=1,
  14. //书籍
  15. //Book = 2,
  16. ////课程
  17. //Curriculum = 3,
  18. ////音频
  19. //Audio = 4,
  20. ////期刊
  21. //Journal = 5,
  22. ////视频
  23. //Video=6
  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. /// 来源
  44. /// </summary>
  45. public string Source { get; set; }
  46. /// <summary>
  47. /// Json内容
  48. /// </summary>
  49. public string Blocks { get; set; }
  50. /// <summary>
  51. /// 审核状态
  52. /// </summary>
  53. public bool IsChecked { get; set; }
  54. /// <summary>
  55. /// 添加时间
  56. /// </summary>
  57. public DateTime AddDate { get; set; }
  58. /// <summary>
  59. /// 排序
  60. /// </summary>
  61. public int Sort { get; set; }
  62. /// <summary>
  63. /// 文章阅读量
  64. /// </summary>
  65. public int ReadCount { get; set; }
  66. /// <summary>
  67. /// 是否置顶
  68. /// </summary>
  69. public bool IsTop { get; set; }
  70. /// <summary>
  71. /// 分类ID
  72. /// </summary>
  73. public int CategoryId { get; set; }
  74. /// <summary>
  75. /// 标签ID
  76. /// </summary>
  77. public int LableId { get; set; }
  78. /// <summary>
  79. /// 是否推荐
  80. /// </summary>
  81. public bool IsRecommend { get; set; }
  82. /// <summary>
  83. /// 出版社
  84. /// </summary>
  85. public string Press { get; set; }
  86. /// <summary>
  87. /// 出版时间
  88. /// </summary>
  89. public string PublishTime { get; set; }
  90. /// <summary>
  91. /// 媒体类
  92. /// </summary>
  93. public List<MediaLibraryRequest> MediaLibraryRequest { get; set; }
  94. /// <summary>
  95. /// 媒体标签
  96. /// </summary>
  97. public List<MediaLableRequest> MediaLableRequests { get; set; }
  98. }
  99. /// <summary>
  100. /// 媒体库
  101. /// </summary>
  102. public class MediaLibraryRequest
  103. {
  104. /// <summary>
  105. /// 媒体ID
  106. /// </summary>
  107. /// <value></value>
  108. public int MediaId { get; set; }
  109. /// <summary>
  110. /// 文件路径
  111. /// </summary>
  112. public string FileUrl { get; set; }
  113. /// <summary>
  114. /// 文件名称
  115. /// </summary>
  116. public string Name { get; set; }
  117. /// <summary>
  118. /// 排序
  119. /// </summary>
  120. public int Sort { get; set; }
  121. }
  122. /// <summary>
  123. /// 媒体标签
  124. /// </summary>
  125. public class MediaLableRequest
  126. {
  127. /// <summary>
  128. /// 媒体ID
  129. /// </summary>
  130. /// <value></value>
  131. public int MediaId { get; set; }
  132. /// <summary>
  133. /// 标签ID
  134. /// </summary>
  135. public string LableId { get; set; }
  136. /// <summary>
  137. /// 标签名称
  138. /// </summary>
  139. public string LableName { get; set; }
  140. }
  141. /// <summary>
  142. ///
  143. /// </summary>
  144. public class MediaSearchRequest : PageParameter
  145. {
  146. /// <summary>
  147. ///
  148. /// </summary>
  149. /// <value></value>
  150. public int MediaType { get; set; }
  151. /// <summary>
  152. /// 是否删除
  153. /// </summary>
  154. /// <value></value>
  155. public int IsDelete { get; set; }
  156. }
  157. }