Media.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. using System;
  2. using Datory.Annotations;
  3. using GxPress.EnumConst;
  4. namespace GxPress.Entity.tede2.Media
  5. {
  6. /// <summary>
  7. /// 媒体类型 文章、书籍、视频、音频、期刊
  8. /// </summary>
  9. [DataTable("tede_media")]
  10. public class Media : Datory.Entity
  11. {
  12. /// <summary>
  13. /// 编号
  14. /// </summary>
  15. /// <value></value>
  16. [DataColumn]
  17. public string AutoNumber { get; set; }
  18. /// <summary>
  19. /// 媒体类型
  20. /// Article=1,
  21. //书籍
  22. //Book = 2,
  23. ////课程
  24. //Curriculum = 3,
  25. ////音频
  26. //Audio = 4,
  27. ////期刊
  28. //Journal = 5,
  29. ////视频
  30. //Video=6
  31. /// </summary>
  32. [DataColumn]
  33. public int MediaType { get; set; }
  34. /// <summary>
  35. /// 标题
  36. /// </summary>
  37. [DataColumn]
  38. public string Title { get; set; }
  39. /// <summary>
  40. /// 标题图片
  41. /// </summary>
  42. [DataColumn]
  43. public string ImageUrls { get; set; }
  44. /// <summary>
  45. /// 简介
  46. /// </summary>
  47. [DataColumn]
  48. public string Summary { get; set; }
  49. /// <summary>
  50. /// 作者
  51. /// </summary>
  52. [DataColumn]
  53. public string Author { get; set; }
  54. /// <summary>
  55. /// 名师ID
  56. /// </summary>
  57. /// <value></value>
  58. [DataColumn]
  59. public int TeacherId { get; set; }
  60. /// <summary>
  61. /// 来源
  62. /// </summary>
  63. [DataColumn]
  64. public string Source { get; set; }
  65. /// <summary>
  66. /// Json内容
  67. /// </summary>
  68. [DataColumn(Text = true)]
  69. public string Blocks { get; set; }
  70. /// <summary>
  71. /// 审核状态
  72. /// </summary>
  73. [DataColumn]
  74. public bool IsChecked { get; set; }
  75. /// <summary>
  76. /// 添加时间
  77. /// </summary>
  78. [DataColumn]
  79. public DateTime AddDate { get; set; }
  80. /// <summary>
  81. /// 排序
  82. /// </summary>
  83. [DataColumn]
  84. public int Sort { get; set; }
  85. /// <summary>
  86. /// 是否置顶
  87. /// </summary>
  88. [DataColumn]
  89. public bool IsTop { get; set; }
  90. /// <summary>
  91. /// 分类ID
  92. /// </summary>
  93. [DataColumn]
  94. public string CategoryId { get; set; }
  95. /// <summary>
  96. /// 分类ID
  97. /// </summary>
  98. [DataColumn]
  99. public int AppCategoryId { get; set; }
  100. /// <summary>
  101. /// 完整分类ID
  102. /// </summary>
  103. [DataColumn]
  104. public string FullCategoryId { get; set; }
  105. /// <summary>
  106. /// 分类名称
  107. /// </summary>
  108. [DataColumn]
  109. public string CategoryName { get; set; }
  110. /// <summary>
  111. /// 标签ID
  112. /// </summary>
  113. [DataColumn]
  114. public int LableId { get; set; }
  115. /// <summary>
  116. /// 是否推荐
  117. /// </summary>
  118. [DataColumn]
  119. public bool IsRecommend { get; set; }
  120. /// <summary>
  121. /// 出版社
  122. /// </summary>
  123. [DataColumn]
  124. public string Press { get; set; }
  125. /// <summary>
  126. /// 出版时间
  127. /// </summary>
  128. [DataColumn]
  129. public string PublishTime { get; set; }
  130. /// <summary>
  131. /// 价格
  132. /// </summary>
  133. [DataColumn]
  134. public decimal Price { get; set; }
  135. /// <summary>
  136. /// IOS价格
  137. /// </summary>
  138. [DataColumn]
  139. public decimal IosPrice { get; set; }
  140. /// <summary>
  141. /// 其他价格
  142. /// </summary>
  143. [DataColumn]
  144. public decimal OtherPrice { get; set; }
  145. /// <summary>
  146. /// 操作人ID
  147. /// </summary>
  148. /// <value></value>
  149. [DataColumn]
  150. public int AdminId { get; set; }
  151. /// <summary>
  152. /// 操作人
  153. /// </summary>
  154. /// <value></value>
  155. [DataColumn]
  156. public string Creator { get; set; }
  157. /// <summary>
  158. /// ios折扣价格打折
  159. /// </summary>
  160. [DataColumn]
  161. public decimal IosDiscountPrice { get; set; }
  162. /// <summary>
  163. /// 其他折扣价格打折
  164. /// </summary>
  165. [DataColumn]
  166. public decimal OtherDiscountPrice { get; set; }
  167. /// <summary>
  168. /// 免费类容占比
  169. /// </summary>
  170. /// <value></value>
  171. [DataColumn]
  172. public decimal FreeProportion { get; set; }
  173. /// <summary>
  174. /// 是否删除
  175. /// </summary>
  176. /// <value></value>
  177. [DataColumn]
  178. public bool IsDelete { get; set; }
  179. /// <summary>
  180. /// 类型 名栏 公众号 期刊
  181. /// </summary>
  182. /// <value></value>
  183. [DataColumn]
  184. public AttachTypeConst AttachType { get; set; }
  185. /// <summary>
  186. /// 类型 1名栏 2公众号
  187. /// </summary>
  188. /// <value></value>
  189. [DataColumn]
  190. public int AttachId { get; set; }
  191. /// <summary>
  192. /// 关联的媒体ID
  193. /// </summary>
  194. /// <value></value>
  195. [DataColumn]
  196. public int MediaId { get; set; }
  197. /// <summary>
  198. /// 关联的媒体标题
  199. /// </summary>
  200. /// <value></value>
  201. [DataColumn]
  202. public string MediaTitle { get; set; }
  203. /// <summary>
  204. /// 是否有库
  205. /// </summary>
  206. /// <value></value>
  207. [DataColumn]
  208. public bool IsLibrary { get; set; }
  209. /// <summary>
  210. /// 刊期年
  211. /// </summary>
  212. /// <value></value>
  213. [DataColumn]
  214. public string JournalsYear { get; set; }
  215. /// <summary>
  216. /// 刊期期数
  217. /// </summary>
  218. /// <value></value>
  219. [DataColumn]
  220. public int JournalsCategory { get; set; }
  221. /// <summary>
  222. /// 收藏次数
  223. /// </summary>
  224. [DataColumn]
  225. public int CollectCount { get; set; }
  226. /// <summary>
  227. /// 转发数量
  228. /// </summary>
  229. /// <value></value>
  230. [DataColumn]
  231. public int RetransmissionCount { get; set; }
  232. /// <summary>
  233. /// 浏览量
  234. /// </summary>
  235. [DataColumn]
  236. public int ReadCount { get; set; }
  237. /// <summary>
  238. /// 评论数量
  239. /// </summary>
  240. /// <value></value>
  241. [DataColumn]
  242. public int CommentCount { get; set; }
  243. /// <summary>
  244. /// 销售总金额
  245. /// </summary>
  246. /// <value></value>
  247. [DataColumn]
  248. public decimal SellAmount { get; set; }
  249. /// <summary>
  250. /// 订单数量
  251. /// </summary>
  252. /// <value></value>
  253. [DataColumn]
  254. public int OrderCount { get; set; }
  255. /// <summary>
  256. /// 评论分数
  257. /// </summary>
  258. /// <value></value>
  259. [DataColumn]
  260. public decimal CommentScore { get; set; }
  261. /// <summary>
  262. /// 是否习题
  263. /// </summary>
  264. /// <value></value>
  265. [DataColumn]
  266. public bool IsExercises { get; set; }
  267. }
  268. }