News.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package com.fdkankan.manage.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.fdkankan.db.base.BaseEntity;
  7. import java.io.Serializable;
  8. import java.sql.Blob;
  9. import java.util.Date;
  10. import lombok.Getter;
  11. import lombok.Setter;
  12. /**
  13. * <p>
  14. *
  15. * </p>
  16. *
  17. * @author
  18. * @since 2022-06-06
  19. */
  20. @Getter
  21. @Setter
  22. @TableName("t_news")
  23. public class News extends BaseEntity {
  24. private static final long serialVersionUID = 1L;
  25. @TableId(value = "id", type = IdType.AUTO)
  26. private Integer id;
  27. /**
  28. * 来源
  29. */
  30. @TableField("source")
  31. private String source;
  32. /**
  33. * 新闻类型(1-链接,2-图文)
  34. */
  35. @TableField("new_type")
  36. private Integer newType;
  37. /**
  38. * 是否显示(0-否,1-是)
  39. */
  40. @TableField("display")
  41. private Integer display;
  42. /**
  43. * 是否置顶(0-否,1-是)
  44. */
  45. @TableField("is_top")
  46. private Integer isTop;
  47. /**
  48. * 是否发布(0-否,1-是)
  49. */
  50. @TableField("is_public")
  51. private Integer isPublic;
  52. /**
  53. * 标题
  54. */
  55. @TableField("title")
  56. private String title;
  57. /**
  58. * 新闻内容
  59. */
  60. @TableField("content")
  61. private String content;
  62. /**
  63. * 封面图url
  64. */
  65. @TableField("cover_image_url")
  66. private String coverImageUrl;
  67. /**
  68. * 发布时间
  69. */
  70. @TableField("public_time")
  71. private Date publicTime;
  72. /**
  73. * 置顶时间
  74. */
  75. @TableField("top_time")
  76. private Date topTime;
  77. }