fix articleController

main
Revers 10 months ago
parent ab48aa3dd7
commit ee341d4f44

@ -44,8 +44,8 @@ public class ArticleRespDTO implements Serializable {
@ApiModelProperty(value = "是否允许评论 否0 是1")
private String allowCommit;
@ApiModelProperty(value = "是否自动推送 否:0 是1")
private String autoPush;
@ApiModelProperty(value = "是否自动推送 否:false 是true")
private Boolean autoPush;
@ApiModelProperty(value = "总评论数,大于99显示99+")
private Long totalCommentReply;
@ -73,7 +73,7 @@ public class ArticleRespDTO implements Serializable {
response.setIsScheduled(article.getIsScheduled());
response.setPubTime(article.getPubTime().format(Constants.formatter));
response.setAllowCommit(article.getAllowCommit());
response.setAutoPush(article.getAutoPush());
response.setAutoPush("1".equals(article.getAutoPush())?true:false);
return response;
}

Loading…
Cancel
Save