NewsInfo.java 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. package com.ruoyi.system.domain;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import org.apache.commons.lang3.builder.ToStringBuilder;
  5. import org.apache.commons.lang3.builder.ToStringStyle;
  6. import com.ruoyi.common.annotation.Excel;
  7. import com.ruoyi.common.core.domain.BaseEntity;
  8. /**
  9. * 文章管理对象 news_info
  10. *
  11. * @author ruoyi
  12. * @date 2021-12-28
  13. */
  14. public class NewsInfo extends BaseEntity
  15. {
  16. private static final long serialVersionUID = 1L;
  17. /** 新闻编号 */
  18. @Excel(name = "新闻编号")
  19. private Long newsInfoId;
  20. /** 新闻标题 */
  21. @Excel(name = "新闻标题")
  22. private String newsInfoTitle;
  23. /** 新闻作者 */
  24. @Excel(name = "新闻作者")
  25. private String newsInfoAuthor;
  26. /** 新闻来源 */
  27. @Excel(name = "新闻来源")
  28. private String newsInfoSource;
  29. /** 新闻时间 */
  30. @JsonFormat(pattern = "yyyy-MM-dd")
  31. @Excel(name = "新闻时间", width = 30, dateFormat = "yyyy-MM-dd")
  32. private Date newsInfoTime;
  33. /** 新闻点击数量 */
  34. @Excel(name = "新闻点击数量")
  35. private Long newsInfoClick;
  36. /** 创建新闻时间 */
  37. @JsonFormat(pattern = "yyyy-MM-dd")
  38. @Excel(name = "创建新闻时间", width = 30, dateFormat = "yyyy-MM-dd")
  39. private Date newsInfoInittime;
  40. /** 新闻类型 */
  41. @Excel(name = "新闻类型")
  42. private Long newsInfoType;
  43. /** 是否是轮播(0不是,1是) */
  44. @Excel(name = "是否是轮播(0不是,1是)")
  45. private Long newsInfoCarousel;
  46. /** 是否为静态轮播(0不是,1是) */
  47. @Excel(name = "是否为静态轮播(0不是,1是)")
  48. private Long newsInfoSc;
  49. /** 是否为推荐文章(0不是,1是) */
  50. @Excel(name = "是否为推荐文章(0不是,1是)")
  51. private Long newsInfoRecommend;
  52. /** 封面地址 */
  53. private String newsInfoUrl;
  54. /** 用户作者id */
  55. private Long newsInfoAuthorid;
  56. /** 新闻正文 */
  57. private String newsInfoContent;
  58. public void setNewsInfoId(Long newsInfoId)
  59. {
  60. this.newsInfoId = newsInfoId;
  61. }
  62. public Long getNewsInfoId()
  63. {
  64. return newsInfoId;
  65. }
  66. public void setNewsInfoTitle(String newsInfoTitle)
  67. {
  68. this.newsInfoTitle = newsInfoTitle;
  69. }
  70. public String getNewsInfoTitle()
  71. {
  72. return newsInfoTitle;
  73. }
  74. public void setNewsInfoAuthor(String newsInfoAuthor)
  75. {
  76. this.newsInfoAuthor = newsInfoAuthor;
  77. }
  78. public String getNewsInfoAuthor()
  79. {
  80. return newsInfoAuthor;
  81. }
  82. public void setNewsInfoSource(String newsInfoSource)
  83. {
  84. this.newsInfoSource = newsInfoSource;
  85. }
  86. public String getNewsInfoSource()
  87. {
  88. return newsInfoSource;
  89. }
  90. public void setNewsInfoTime(Date newsInfoTime)
  91. {
  92. this.newsInfoTime = newsInfoTime;
  93. }
  94. public Date getNewsInfoTime()
  95. {
  96. return newsInfoTime;
  97. }
  98. public void setNewsInfoClick(Long newsInfoClick)
  99. {
  100. this.newsInfoClick = newsInfoClick;
  101. }
  102. public Long getNewsInfoClick()
  103. {
  104. return newsInfoClick;
  105. }
  106. public void setNewsInfoInittime(Date newsInfoInittime)
  107. {
  108. this.newsInfoInittime = newsInfoInittime;
  109. }
  110. public Date getNewsInfoInittime()
  111. {
  112. return newsInfoInittime;
  113. }
  114. public void setNewsInfoType(Long newsInfoType)
  115. {
  116. this.newsInfoType = newsInfoType;
  117. }
  118. public Long getNewsInfoType()
  119. {
  120. return newsInfoType;
  121. }
  122. public void setNewsInfoCarousel(Long newsInfoCarousel)
  123. {
  124. this.newsInfoCarousel = newsInfoCarousel;
  125. }
  126. public Long getNewsInfoCarousel()
  127. {
  128. return newsInfoCarousel;
  129. }
  130. public void setNewsInfoSc(Long newsInfoSc)
  131. {
  132. this.newsInfoSc = newsInfoSc;
  133. }
  134. public Long getNewsInfoSc()
  135. {
  136. return newsInfoSc;
  137. }
  138. public void setNewsInfoRecommend(Long newsInfoRecommend)
  139. {
  140. this.newsInfoRecommend = newsInfoRecommend;
  141. }
  142. public Long getNewsInfoRecommend()
  143. {
  144. return newsInfoRecommend;
  145. }
  146. public void setNewsInfoUrl(String newsInfoUrl)
  147. {
  148. this.newsInfoUrl = newsInfoUrl;
  149. }
  150. public String getNewsInfoUrl()
  151. {
  152. return newsInfoUrl;
  153. }
  154. public void setNewsInfoAuthorid(Long newsInfoAuthorid)
  155. {
  156. this.newsInfoAuthorid = newsInfoAuthorid;
  157. }
  158. public Long getNewsInfoAuthorid()
  159. {
  160. return newsInfoAuthorid;
  161. }
  162. public void setNewsInfoContent(String newsInfoContent)
  163. {
  164. this.newsInfoContent = newsInfoContent;
  165. }
  166. public String getNewsInfoContent()
  167. {
  168. return newsInfoContent;
  169. }
  170. @Override
  171. public String toString() {
  172. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  173. .append("newsInfoId", getNewsInfoId())
  174. .append("newsInfoTitle", getNewsInfoTitle())
  175. .append("newsInfoAuthor", getNewsInfoAuthor())
  176. .append("newsInfoSource", getNewsInfoSource())
  177. .append("newsInfoTime", getNewsInfoTime())
  178. .append("newsInfoClick", getNewsInfoClick())
  179. .append("newsInfoInittime", getNewsInfoInittime())
  180. .append("newsInfoType", getNewsInfoType())
  181. .append("newsInfoCarousel", getNewsInfoCarousel())
  182. .append("newsInfoSc", getNewsInfoSc())
  183. .append("newsInfoRecommend", getNewsInfoRecommend())
  184. .append("newsInfoUrl", getNewsInfoUrl())
  185. .append("newsInfoAuthorid", getNewsInfoAuthorid())
  186. .append("newsInfoContent", getNewsInfoContent())
  187. .toString();
  188. }
  189. }