CmsNews.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. package com.lqkj.business.entity;
  2. import com.lqkj.common.annotation.Excels;
  3. import org.apache.commons.lang3.builder.ToStringBuilder;
  4. import org.apache.commons.lang3.builder.ToStringStyle;
  5. import com.lqkj.common.annotation.Excel;
  6. import com.lqkj.common.core.model.BaseEntity;
  7. /**
  8. * 信息管理对象 cms_news
  9. *
  10. * @author lqkj
  11. * @date 2023-02-16
  12. */
  13. public class CmsNews extends BaseEntity
  14. {
  15. private static final long serialVersionUID = 1L;
  16. /** 编号 */
  17. private String newsId;
  18. /** 所属分类 */
  19. // @Excel(name = "所属分类")
  20. private Integer categoryId;
  21. /** 标题 */
  22. @Excel(name = "标题")
  23. private String title;
  24. /** 内容 */
  25. private String content;
  26. /** 浏览量 */
  27. @Excel(name = "浏览量")
  28. private Integer viewCount;
  29. /** 是否置顶 */
  30. @Excel(name = "是否置顶", readConverterExp = "true=是,false=否")
  31. private Boolean isTop;
  32. /** 是否轮播 */
  33. @Excel(name = "是否轮播", readConverterExp = "true=是,false=否")
  34. private Boolean carousel;
  35. /** 缩略图 */
  36. @Excel(name = "缩略图")
  37. private String thumbnail;
  38. /** 视频 */
  39. @Excel(name = "视频")
  40. private String videoUrl;
  41. private Object focusImgs;
  42. @Excels({
  43. @Excel(name = "分类名称", targetAttr = "name", type = Excel.Type.EXPORT)})
  44. private CmsCategory cmsCategory;
  45. public void setNewsId(String newsId)
  46. {
  47. this.newsId = newsId;
  48. }
  49. public String getNewsId()
  50. {
  51. return newsId;
  52. }
  53. public void setCategoryId(Integer categoryId)
  54. {
  55. this.categoryId = categoryId;
  56. }
  57. public Integer getCategoryId()
  58. {
  59. return categoryId;
  60. }
  61. public void setTitle(String title)
  62. {
  63. this.title = title;
  64. }
  65. public String getTitle()
  66. {
  67. return title;
  68. }
  69. public void setContent(String content)
  70. {
  71. this.content = content;
  72. }
  73. public String getContent()
  74. {
  75. return content;
  76. }
  77. public void setViewCount(Integer viewCount)
  78. {
  79. this.viewCount = viewCount;
  80. }
  81. public Integer getViewCount()
  82. {
  83. return viewCount;
  84. }
  85. public void setIsTop(Boolean isTop)
  86. {
  87. this.isTop = isTop;
  88. }
  89. public Boolean getIsTop()
  90. {
  91. return isTop;
  92. }
  93. public void setThumbnail(String thumbnail)
  94. {
  95. this.thumbnail = thumbnail;
  96. }
  97. public String getThumbnail()
  98. {
  99. return thumbnail;
  100. }
  101. public void setVideoUrl(String videoUrl)
  102. {
  103. this.videoUrl = videoUrl;
  104. }
  105. public String getVideoUrl()
  106. {
  107. return videoUrl;
  108. }
  109. public CmsCategory getCmsCategory() {
  110. return cmsCategory;
  111. }
  112. public void setCmsCategory(CmsCategory cmsCategory) {
  113. this.cmsCategory = cmsCategory;
  114. }
  115. public Object getFocusImgs() {
  116. return focusImgs;
  117. }
  118. public void setFocusImgs(Object focusImgs) {
  119. this.focusImgs = focusImgs;
  120. }
  121. public Boolean getCarousel() {
  122. return carousel;
  123. }
  124. public void setCarousel(Boolean carousel) {
  125. this.carousel = carousel;
  126. }
  127. @Override
  128. public String toString() {
  129. return "CmsNews{" +
  130. "newsId='" + newsId + '\'' +
  131. ", categoryId=" + categoryId +
  132. ", title='" + title + '\'' +
  133. ", content='" + content + '\'' +
  134. ", viewCount=" + viewCount +
  135. ", isTop=" + isTop +
  136. ", carousel=" + carousel +
  137. ", thumbnail='" + thumbnail + '\'' +
  138. ", videoUrl='" + videoUrl + '\'' +
  139. ", focusImgs=" + focusImgs +
  140. ", cmsCategory=" + cmsCategory +
  141. '}';
  142. }
  143. }