MediaRequest.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. /// 0全部
  148. /// </summary>
  149. /// <value></value>
  150. public int MediaType { get; set; }
  151. /// <summary>
  152. /// 0 全部 1删除 2未删除
  153. /// </summary>
  154. /// <value></value>
  155. public int IsDelete { get; set; }
  156. /// <summary>
  157. /// 0 全部 1 包含 2 未包含
  158. /// </summary>
  159. /// <value></value>
  160. public int LibraryType { get; set; }
  161. /// <summary>
  162. /// 搜索字段
  163. /// </summary>
  164. /// <value></value>
  165. public string KeyWord { get; set; }
  166. /// <summary>
  167. /// 开始时间
  168. /// </summary>
  169. /// <value></value>
  170. public string BeginTime { get; set; }
  171. /// <summary>
  172. /// 结束时间
  173. /// </summary>
  174. /// <value></value>
  175. public string EndTime { get; set; }
  176. /// <summary>
  177. /// 是否上下架 0全部 1 上架 2下架
  178. /// </summary>
  179. /// <value></value>
  180. public int IsChecked { get; set; }
  181. }
  182. /// <summary>
  183. ///
  184. /// </summary>
  185. public class BookCatalogRequest
  186. {
  187. /// <summary>
  188. /// 媒体ID
  189. /// </summary>
  190. /// <value></value>
  191. public int MediaId { get; set; }
  192. /// <summary>
  193. /// 目录名称
  194. /// </summary>
  195. /// <value></value>
  196. public string CatalogNameg { get; set; }
  197. /// <summary>
  198. /// 目录ID
  199. /// </summary>
  200. /// <value></value>
  201. public string CatalogId { get; set; }
  202. /// <summary>
  203. /// 路径
  204. /// </summary>
  205. /// <value></value>
  206. public string Path { get; set; }
  207. /// <summary>
  208. /// 用户ID
  209. /// </summary>
  210. /// <value></value>
  211. public int UserId { get; set; }
  212. }
  213. /// <summary>
  214. /// 排行榜
  215. /// </summary>
  216. public class RankingListRequest : Common.Page.PageParameter
  217. {
  218. /// <summary>
  219. /// 1 热搜 2热书榜 3 课程榜 4Top 100 新书 5文献头条 6试听榜 7大众热评 8Top 100 专著
  220. /// </summary>
  221. /// <value></value>
  222. public int DataTypeValue { get; set; }
  223. }
  224. /// <summary>
  225. ///
  226. /// </summary>
  227. public class MediaIdsRequest : Common.Page.PageParameter
  228. {
  229. public int LableId { get; set; }
  230. public List<int> Ids { get; set; }
  231. }
  232. }