|
|
|
@ -7,6 +7,7 @@ import lombok.Data;
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author Revers.
|
|
|
|
@ -38,7 +39,7 @@ public class ArticleRespDTO implements Serializable {
|
|
|
|
|
@ApiModelProperty(value = "是否定时发布 否:0 是:1")
|
|
|
|
|
private String isScheduled;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "发布时间,格式为: yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@ApiModelProperty(value = "发布时间,格式为: yyyy-MM-ddTHH:mm:ss.sssZ")
|
|
|
|
|
private String pubTime;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "是否允许评论 否:0 是:1")
|
|
|
|
@ -67,11 +68,11 @@ public class ArticleRespDTO implements Serializable {
|
|
|
|
|
response.setContent(article.getContent());
|
|
|
|
|
response.setUserId(article.getUserId());
|
|
|
|
|
response.setUserName(article.getUserName());
|
|
|
|
|
response.setDate(article.getUpdateTime().format(Constants.formatter));
|
|
|
|
|
response.setDate(article.getUpdateTime().format(DateTimeFormatter.ISO_DATE_TIME));
|
|
|
|
|
response.setTotalCommentReply(article.getComment());
|
|
|
|
|
response.setVistisNum(article.getVisits());
|
|
|
|
|
response.setIsScheduled(article.getIsScheduled());
|
|
|
|
|
response.setPubTime(article.getPubTime().format(Constants.formatter));
|
|
|
|
|
response.setPubTime(article.getPubTime().format(DateTimeFormatter.ISO_DATE_TIME));
|
|
|
|
|
response.setAllowCommit(article.getAllowCommit());
|
|
|
|
|
response.setAutoPush("1".equals(article.getAutoPush())?true:false);
|
|
|
|
|
|
|
|
|
|