package com.goafanti.news.bo; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.Size; import com.goafanti.common.constant.ErrorConstants; public class InputNews { private Long id; @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String title; @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String titleImg; @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String author; @Max(value = 99, message = "{" + ErrorConstants.PARAM_ERROR + "}") @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}") private Integer type; @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}") @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}") private Integer hot; @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String source; @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String sourceUrl; @Size(min = 0, max = 144, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String summary; @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}") @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}") private Integer jmrhFlag; private String content; public Long getId() { return id; } public void setId(Long id) { this.id = id; } 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 String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } 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 getSource() { return source; } public void setSource(String source) { this.source = source; } public String getSourceUrl() { return sourceUrl; } public void setSourceUrl(String sourceUrl) { this.sourceUrl = sourceUrl; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public Integer getJmrhFlag() { return jmrhFlag; } public void setJmrhFlag(Integer jmrhFlag) { this.jmrhFlag = jmrhFlag; } }