SysNotice.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. /** 公告类型(1通知 2公告) */
  21. private String noticeType;
  22. /**
  23. * 已读的用户id,逗号分隔
  24. */
  25. private String readUserId;
  26. /**
  27. * 是否已读 N:未读 Y:已读
  28. */
  29. private String isRead;
  30. /** 公告内容 */
  31. private String noticeContent;
  32. /** 公告状态(0正常 1关闭) */
  33. private String status;
  34. public String getReadUserId() {
  35. return readUserId;
  36. }
  37. public void setReadUserId(String readUserId) {
  38. this.readUserId = readUserId;
  39. }
  40. public String getIsRead() {
  41. return isRead;
  42. }
  43. public void setIsRead(String isRead) {
  44. this.isRead = isRead;
  45. }
  46. public Long getNoticeId()
  47. {
  48. return noticeId;
  49. }
  50. public void setNoticeId(Long noticeId)
  51. {
  52. this.noticeId = noticeId;
  53. }
  54. public void setNoticeTitle(String noticeTitle)
  55. {
  56. this.noticeTitle = noticeTitle;
  57. }
  58. @Xss(message = "公告标题不能包含脚本字符")
  59. @NotBlank(message = "公告标题不能为空")
  60. @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
  61. public String getNoticeTitle()
  62. {
  63. return noticeTitle;
  64. }
  65. public void setNoticeType(String noticeType)
  66. {
  67. this.noticeType = noticeType;
  68. }
  69. public String getNoticeType()
  70. {
  71. return noticeType;
  72. }
  73. public void setNoticeContent(String noticeContent)
  74. {
  75. this.noticeContent = noticeContent;
  76. }
  77. public String getNoticeContent()
  78. {
  79. return noticeContent;
  80. }
  81. public void setStatus(String status)
  82. {
  83. this.status = status;
  84. }
  85. public String getStatus()
  86. {
  87. return status;
  88. }
  89. @Override
  90. public String toString() {
  91. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  92. .append("noticeId", getNoticeId())
  93. .append("noticeTitle", getNoticeTitle())
  94. .append("noticeType", getNoticeType())
  95. .append("noticeContent", getNoticeContent())
  96. .append("status", getStatus())
  97. .append("createBy", getCreateBy())
  98. .append("createTime", getCreateTime())
  99. .append("updateBy", getUpdateBy())
  100. .append("updateTime", getUpdateTime())
  101. .append("remark", getRemark())
  102. .toString();
  103. }
  104. }