Article.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using Datory.Annotations;
  3. namespace GxPress.Entity.Article
  4. {
  5. /// <summary>
  6. /// 文章定义
  7. /// </summary>
  8. [DataTable("tede_article")]
  9. public class Article : Datory.Entity
  10. {
  11. /// <summary>
  12. /// 标题
  13. /// </summary>
  14. [DataColumn]
  15. public string Title { get; set; }
  16. /// <summary>
  17. /// 组id
  18. /// </summary>
  19. [DataColumn]
  20. public int GroupId { get; set; }
  21. /// <summary>
  22. /// 标题图片
  23. /// </summary>
  24. [DataColumn]
  25. public string ImageUrls { get; set; }
  26. /// <summary>
  27. /// 简介
  28. /// </summary>
  29. [DataColumn]
  30. public string Summary { get; set; }
  31. /// <summary>
  32. /// 作者
  33. /// </summary>
  34. [DataColumn]
  35. public string Author { get; set; }
  36. /// <summary>
  37. /// 来源
  38. /// </summary>
  39. [DataColumn]
  40. public string Source { get; set; }
  41. /// <summary>
  42. /// Json内容
  43. /// </summary>
  44. [DataColumn(Text = true)]
  45. public string Blocks { get; set; }
  46. /// <summary>
  47. /// 新版Json内容
  48. /// </summary>
  49. [DataColumn(Text = true)]
  50. public string ContentJson { get; set; }
  51. /// <summary>
  52. /// 审核状态
  53. /// </summary>
  54. [DataColumn]
  55. public bool IsChecked { get; set; }
  56. /// <summary>
  57. /// 添加时间
  58. /// </summary>
  59. [DataColumn]
  60. public DateTime AddDate { get; set; }
  61. /// <summary>
  62. /// 排序
  63. /// </summary>
  64. [DataColumn]
  65. public int Sort { get; set; }
  66. /// <summary>
  67. /// 文章阅读量
  68. /// </summary>
  69. [DataColumn]
  70. public int ReadCount { get; set; }
  71. /// <summary>
  72. /// 是否置顶
  73. /// </summary>
  74. [DataColumn]
  75. public bool IsTop { get; set; }
  76. /// <summary>
  77. /// 是否是老本文本编辑器
  78. /// </summary>
  79. [DataColumn]
  80. public bool IsBlocks { get; set; }
  81. }
  82. }