InputNews.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. package com.goafanti.news.bo;
  2. import javax.validation.constraints.Max;
  3. import javax.validation.constraints.Min;
  4. import javax.validation.constraints.Size;
  5. import com.goafanti.common.constant.ErrorConstants;
  6. public class InputNews {
  7. private Long id;
  8. @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  9. private String title;
  10. @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  11. private String titleImg;
  12. @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  13. private String author;
  14. @Max(value = 99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  15. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  16. private Integer type;
  17. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  18. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  19. private Integer hot;
  20. @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  21. private String source;
  22. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  23. private String sourceUrl;
  24. @Size(min = 0, max = 144, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  25. private String summary;
  26. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  27. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  28. private Integer jmrhFlag;
  29. private String content;
  30. public Long getId() {
  31. return id;
  32. }
  33. public void setId(Long id) {
  34. this.id = id;
  35. }
  36. public String getTitle() {
  37. return title;
  38. }
  39. public void setTitle(String title) {
  40. this.title = title;
  41. }
  42. public String getTitleImg() {
  43. return titleImg;
  44. }
  45. public void setTitleImg(String titleImg) {
  46. this.titleImg = titleImg;
  47. }
  48. public String getAuthor() {
  49. return author;
  50. }
  51. public void setAuthor(String author) {
  52. this.author = author;
  53. }
  54. public Integer getType() {
  55. return type;
  56. }
  57. public void setType(Integer type) {
  58. this.type = type;
  59. }
  60. public Integer getHot() {
  61. return hot;
  62. }
  63. public void setHot(Integer hot) {
  64. this.hot = hot;
  65. }
  66. public String getSource() {
  67. return source;
  68. }
  69. public void setSource(String source) {
  70. this.source = source;
  71. }
  72. public String getSourceUrl() {
  73. return sourceUrl;
  74. }
  75. public void setSourceUrl(String sourceUrl) {
  76. this.sourceUrl = sourceUrl;
  77. }
  78. public String getSummary() {
  79. return summary;
  80. }
  81. public void setSummary(String summary) {
  82. this.summary = summary;
  83. }
  84. public String getContent() {
  85. return content;
  86. }
  87. public void setContent(String content) {
  88. this.content = content;
  89. }
  90. public Integer getJmrhFlag() {
  91. return jmrhFlag;
  92. }
  93. public void setJmrhFlag(Integer jmrhFlag) {
  94. this.jmrhFlag = jmrhFlag;
  95. }
  96. }