Media.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. using System;
  2. using Datory.Annotations;
  3. namespace GxPress.Entity.tede2.Media
  4. {
  5. /// <summary>
  6. /// 媒体类型 文章、书籍、视频、音频、期刊
  7. /// </summary>
  8. [DataTable("tede_media")]
  9. public class Media : Datory.Entity
  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. [DataColumn]
  26. public int MediaType { get; set; }
  27. /// <summary>
  28. /// 标题
  29. /// </summary>
  30. [DataColumn]
  31. public string Title { get; set; }
  32. /// <summary>
  33. /// 标题图片
  34. /// </summary>
  35. [DataColumn]
  36. public string ImageUrls { get; set; }
  37. /// <summary>
  38. /// 简介
  39. /// </summary>
  40. [DataColumn]
  41. public string Summary { get; set; }
  42. /// <summary>
  43. /// 作者
  44. /// </summary>
  45. [DataColumn]
  46. public string Author { get; set; }
  47. /// <summary>
  48. /// 名师ID
  49. /// </summary>
  50. /// <value></value>
  51. [DataColumn]
  52. public int TeacherId { get; set; }
  53. /// <summary>
  54. /// 来源
  55. /// </summary>
  56. [DataColumn]
  57. public string Source { get; set; }
  58. /// <summary>
  59. /// Json内容
  60. /// </summary>
  61. [DataColumn(Text = true)]
  62. public string Blocks { get; set; }
  63. /// <summary>
  64. /// 审核状态
  65. /// </summary>
  66. [DataColumn]
  67. public bool IsChecked { get; set; }
  68. /// <summary>
  69. /// 添加时间
  70. /// </summary>
  71. [DataColumn]
  72. public DateTime AddDate { get; set; }
  73. /// <summary>
  74. /// 排序
  75. /// </summary>
  76. [DataColumn]
  77. public int Sort { get; set; }
  78. /// <summary>
  79. /// 文章阅读量
  80. /// </summary>
  81. [DataColumn]
  82. public int ReadCount { get; set; }
  83. /// <summary>
  84. /// 是否置顶
  85. /// </summary>
  86. [DataColumn]
  87. public bool IsTop { get; set; }
  88. /// <summary>
  89. /// 分类ID
  90. /// </summary>
  91. [DataColumn]
  92. public int CategoryId { get; set; }
  93. /// <summary>
  94. /// 标签ID
  95. /// </summary>
  96. [DataColumn]
  97. public int LableId { get; set; }
  98. /// <summary>
  99. /// 是否推荐
  100. /// </summary>
  101. [DataColumn]
  102. public bool IsRecommend { get; set; }
  103. /// <summary>
  104. /// 出版社
  105. /// </summary>
  106. [DataColumn]
  107. public string Press { get; set; }
  108. /// <summary>
  109. /// 出版时间
  110. /// </summary>
  111. [DataColumn]
  112. public string PublishTime { get; set; }
  113. /// <summary>
  114. /// 价格
  115. /// </summary>
  116. [DataColumn]
  117. public decimal Price { get; set; }
  118. /// <summary>
  119. /// IOS价格
  120. /// </summary>
  121. [DataColumn]
  122. public decimal IosPrice { get; set; }
  123. /// <summary>
  124. /// 其他价格
  125. /// </summary>
  126. [DataColumn]
  127. public decimal OtherPrice { get; set; }
  128. /// <summary>
  129. /// 操作人ID
  130. /// </summary>
  131. /// <value></value>
  132. [DataColumn]
  133. public int AdminId { get; set; }
  134. /// <summary>
  135. /// 操作人
  136. /// </summary>
  137. /// <value></value>
  138. [DataColumn]
  139. public string Creator { get; set; }
  140. }
  141. }