SysNotice.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. package com.ruoyi.system.domain;
  2. import javax.validation.constraints.NotBlank;
  3. import javax.validation.constraints.Size;
  4. import org.apache.commons.lang3.builder.ToStringBuilder;
  5. import org.apache.commons.lang3.builder.ToStringStyle;
  6. import com.ruoyi.common.core.domain.BaseEntity;
  7. import com.ruoyi.common.xss.Xss;
  8. /**
  9. * 通知公告表 sys_notice
  10. *
  11. * @author ruoyi
  12. */
  13. public class SysNotice extends BaseEntity
  14. {
  15. private static final long serialVersionUID = 1L;
  16. /** 公告ID */
  17. private Long noticeId;
  18. /** 公告标题 */
  19. private String noticeTitle;
  20. /**
  21. * 封面
  22. */
  23. private String noticeImage;
  24. /** 公告类型(1通知 2公告) */
  25. private String noticeType;
  26. /** 公告内容 */
  27. private String noticeContent;
  28. /** 公告状态(0正常 1关闭) */
  29. private String status;
  30. public Long getNoticeId()
  31. {
  32. return noticeId;
  33. }
  34. public void setNoticeId(Long noticeId)
  35. {
  36. this.noticeId = noticeId;
  37. }
  38. public void setNoticeTitle(String noticeTitle)
  39. {
  40. this.noticeTitle = noticeTitle;
  41. }
  42. @Xss(message = "公告标题不能包含脚本字符")
  43. @NotBlank(message = "公告标题不能为空")
  44. @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
  45. public String getNoticeTitle()
  46. {
  47. return noticeTitle;
  48. }
  49. public String getNoticeImage() {
  50. return noticeImage;
  51. }
  52. public void setNoticeImage(String noticeImage) {
  53. this.noticeImage = noticeImage;
  54. }
  55. public void setNoticeType(String noticeType)
  56. {
  57. this.noticeType = noticeType;
  58. }
  59. public String getNoticeType()
  60. {
  61. return noticeType;
  62. }
  63. public void setNoticeContent(String noticeContent)
  64. {
  65. this.noticeContent = noticeContent;
  66. }
  67. public String getNoticeContent()
  68. {
  69. return noticeContent;
  70. }
  71. public void setStatus(String status)
  72. {
  73. this.status = status;
  74. }
  75. public String getStatus()
  76. {
  77. return status;
  78. }
  79. @Override
  80. public String toString() {
  81. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  82. .append("noticeId", getNoticeId())
  83. .append("noticeTitle", getNoticeTitle())
  84. .append("noticeType", getNoticeType())
  85. .append("noticeContent", getNoticeContent())
  86. .append("status", getStatus())
  87. .append("createBy", getCreateBy())
  88. .append("createTime", getCreateTime())
  89. .append("updateBy", getUpdateBy())
  90. .append("updateTime", getUpdateTime())
  91. .append("remark", getRemark())
  92. .toString();
  93. }
  94. }