Posts.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package com.nosum.deliver.posts.domain.po;
  2. import lombok.Data;
  3. import lombok.EqualsAndHashCode;
  4. import lombok.experimental.Accessors;
  5. import java.io.Serializable;
  6. import java.time.LocalDateTime;
  7. /**
  8. * <p>
  9. *
  10. * </p>
  11. *
  12. * @author sumbytes
  13. * @since 2019-08-28
  14. */
  15. @Data
  16. @EqualsAndHashCode(callSuper = false)
  17. @Accessors(chain = true)
  18. public class Posts {
  19. private static final long serialVersionUID = 1L;
  20. /**
  21. * 主键
  22. */
  23. private Long id;
  24. /**
  25. * 文章标题
  26. */
  27. private String title;
  28. /**
  29. * 封面图
  30. */
  31. private String thumbnail;
  32. /**
  33. * 评论数
  34. */
  35. private Integer comments;
  36. /**
  37. * 状态 1 草稿 2 发布
  38. */
  39. private Integer status;
  40. /**
  41. * 摘要
  42. */
  43. private String summary;
  44. /**
  45. * 浏览次数
  46. */
  47. private Integer views;
  48. /**
  49. * 文章权重
  50. */
  51. private Integer weight;
  52. /**
  53. * 创建时间
  54. */
  55. private LocalDateTime createTime;
  56. /**
  57. * 更新时间
  58. */
  59. private LocalDateTime updateTime;
  60. /**
  61. * 创建人
  62. */
  63. private Long authorId;
  64. /**
  65. * 是否打开评论
  66. */
  67. private Integer isComment;
  68. /**
  69. * 同步到sumbytes状态 (0 未同步 或者同步失败的状态 1同步已成功)
  70. */
  71. private Integer syncStatus;
  72. /**
  73. * 文章分类Id
  74. */
  75. private Integer categoryId;
  76. /**
  77. * 文章分类名称
  78. */
  79. private String categoryName;
  80. }