NewsInfo.java 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. private Long newsInfoId;
  19. /** 新闻标题 */
  20. @Excel(name = "新闻标题")
  21. private String newsInfoTitle;
  22. /** 新闻作者 */
  23. @Excel(name = "新闻作者")
  24. private String newsInfoAuthor;
  25. /** 新闻来源 */
  26. @Excel(name = "新闻来源")
  27. private String newsInfoSource;
  28. /** 新闻正文 */
  29. @Excel(name = "新闻正文")
  30. private String newsInfoContent;
  31. /** 新闻时间 */
  32. @JsonFormat(pattern = "yyyy-MM-dd")
  33. @Excel(name = "新闻时间", width = 30, dateFormat = "yyyy-MM-dd")
  34. private Date newsInfoTime;
  35. /** 新闻点击数量 */
  36. @Excel(name = "新闻点击数量")
  37. private Long newsInfoClick;
  38. /** 创建新闻时间 */
  39. @JsonFormat(pattern = "yyyy-MM-dd")
  40. @Excel(name = "创建新闻时间", width = 30, dateFormat = "yyyy-MM-dd")
  41. private Date newsInfoInittime;
  42. /** 新闻类型 */
  43. @Excel(name = "新闻类型")
  44. private Long newsInfoType;
  45. /** 是否是轮播(0不是,1是) */
  46. @Excel(name = "是否是轮播(0不是,1是)")
  47. private Long newsInfoCarousel;
  48. /** 封面标题 */
  49. @Excel(name = "封面标题")
  50. private String newsInfoUrl;
  51. /** 用户作者id */
  52. @Excel(name = "用户作者id")
  53. private Long newsInfoAuthorid;
  54. public void setNewsInfoId(Long newsInfoId)
  55. {
  56. this.newsInfoId = newsInfoId;
  57. }
  58. public Long getNewsInfoId()
  59. {
  60. return newsInfoId;
  61. }
  62. public void setNewsInfoTitle(String newsInfoTitle)
  63. {
  64. this.newsInfoTitle = newsInfoTitle;
  65. }
  66. public String getNewsInfoTitle()
  67. {
  68. return newsInfoTitle;
  69. }
  70. public void setNewsInfoAuthor(String newsInfoAuthor)
  71. {
  72. this.newsInfoAuthor = newsInfoAuthor;
  73. }
  74. public String getNewsInfoAuthor()
  75. {
  76. return newsInfoAuthor;
  77. }
  78. public void setNewsInfoSource(String newsInfoSource)
  79. {
  80. this.newsInfoSource = newsInfoSource;
  81. }
  82. public String getNewsInfoSource()
  83. {
  84. return newsInfoSource;
  85. }
  86. public void setNewsInfoContent(String newsInfoContent)
  87. {
  88. this.newsInfoContent = newsInfoContent;
  89. }
  90. public String getNewsInfoContent()
  91. {
  92. return newsInfoContent;
  93. }
  94. public void setNewsInfoTime(Date newsInfoTime)
  95. {
  96. this.newsInfoTime = newsInfoTime;
  97. }
  98. public Date getNewsInfoTime()
  99. {
  100. return newsInfoTime;
  101. }
  102. public void setNewsInfoClick(Long newsInfoClick)
  103. {
  104. this.newsInfoClick = newsInfoClick;
  105. }
  106. public Long getNewsInfoClick()
  107. {
  108. return newsInfoClick;
  109. }
  110. public void setNewsInfoInittime(Date newsInfoInittime)
  111. {
  112. this.newsInfoInittime = newsInfoInittime;
  113. }
  114. public Date getNewsInfoInittime()
  115. {
  116. return newsInfoInittime;
  117. }
  118. public void setNewsInfoType(Long newsInfoType)
  119. {
  120. this.newsInfoType = newsInfoType;
  121. }
  122. public Long getNewsInfoType()
  123. {
  124. return newsInfoType;
  125. }
  126. public void setNewsInfoCarousel(Long newsInfoCarousel)
  127. {
  128. this.newsInfoCarousel = newsInfoCarousel;
  129. }
  130. public Long getNewsInfoCarousel()
  131. {
  132. return newsInfoCarousel;
  133. }
  134. public void setNewsInfoUrl(String newsInfoUrl)
  135. {
  136. this.newsInfoUrl = newsInfoUrl;
  137. }
  138. public String getNewsInfoUrl()
  139. {
  140. return newsInfoUrl;
  141. }
  142. public void setNewsInfoAuthorid(Long newsInfoAuthorid)
  143. {
  144. this.newsInfoAuthorid = newsInfoAuthorid;
  145. }
  146. public Long getNewsInfoAuthorid()
  147. {
  148. return newsInfoAuthorid;
  149. }
  150. @Override
  151. public String toString() {
  152. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  153. .append("newsInfoId", getNewsInfoId())
  154. .append("newsInfoTitle", getNewsInfoTitle())
  155. .append("newsInfoAuthor", getNewsInfoAuthor())
  156. .append("newsInfoSource", getNewsInfoSource())
  157. .append("newsInfoContent", getNewsInfoContent())
  158. .append("newsInfoTime", getNewsInfoTime())
  159. .append("newsInfoClick", getNewsInfoClick())
  160. .append("newsInfoInittime", getNewsInfoInittime())
  161. .append("newsInfoType", getNewsInfoType())
  162. .append("newsInfoCarousel", getNewsInfoCarousel())
  163. .append("newsInfoUrl", getNewsInfoUrl())
  164. .append("newsInfoAuthorid", getNewsInfoAuthorid())
  165. .toString();
  166. }
  167. }