| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- package com.goafanti.news.bo;
- import java.util.Date;
- import org.apache.commons.lang3.time.DateFormatUtils;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.fasterxml.jackson.annotation.JsonFormat.Shape;
- import com.goafanti.common.constant.AFTConstants;
- public class NewsSummary {
- /**
- * 主键
- */
- private Long id;
- /**
- * 创建时间
- */
- private Date createTime;
- /**
- * 标题
- */
- private String title;
- /**
- * 题图url
- */
- private String titleImg;
- /**
- * 类型
- */
- private Integer type;
- /**
- * 是否放在首页
- */
- private Integer hot;
- /**
- * 简介
- */
- private String summary;
- /**
- * 来源
- */
- private String source;
- /**
- * 审核状态
- */
- private Integer auditStatus;
- /**
- * 是否发布
- */
- private Integer releaseStatus;
- @JsonFormat(shape = Shape.STRING)
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Integer getAuditStatus() {
- return auditStatus;
- }
- public void setAuditStatus(Integer auditStatus) {
- this.auditStatus = auditStatus;
- }
- public Integer getReleaseStatus() {
- return releaseStatus;
- }
- public void setReleaseStatus(Integer releaseStatus) {
- this.releaseStatus = releaseStatus;
- }
- public Date getCreateTime() {
- return createTime;
- }
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getTitleImg() {
- return titleImg;
- }
- public void setTitleImg(String titleImg) {
- this.titleImg = titleImg;
- }
- public Integer getType() {
- return type;
- }
- public void setType(Integer type) {
- this.type = type;
- }
- public Integer getHot() {
- return hot;
- }
- public void setHot(Integer hot) {
- this.hot = hot;
- }
- public String getSummary() {
- return summary;
- }
- public void setSummary(String summary) {
- this.summary = summary;
- }
- public String getSource() {
- return source;
- }
- public void setSource(String source) {
- this.source = source;
- }
- public String getCreateTimeFormattedDate() {
- if (this.createTime == null) {
- return null;
- } else {
- return DateFormatUtils.format(this.createTime, AFTConstants.YYYYMMDD);
- }
- }
- public String getCreateTimeFormattedDate_md() {
- if (this.createTime == null) {
- return null;
- } else {
- return DateFormatUtils.format(this.createTime, AFTConstants.MMDD);
- }
- }
- public String getCreateTimeFormattedDate_y() {
- if (this.createTime == null) {
- return null;
- } else {
- return DateFormatUtils.format(this.createTime, AFTConstants.YYYY);
- }
- }
- }
|