SysNotice.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. private String noticeContent;
  24. /** 公告状态(0正常 1关闭) */
  25. private String status;
  26. public Long getNoticeId()
  27. {
  28. return noticeId;
  29. }
  30. public void setNoticeId(Long noticeId)
  31. {
  32. this.noticeId = noticeId;
  33. }
  34. public void setNoticeTitle(String noticeTitle)
  35. {
  36. this.noticeTitle = noticeTitle;
  37. }
  38. @Xss(message = "公告标题不能包含脚本字符")
  39. @NotBlank(message = "公告标题不能为空")
  40. @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
  41. public String getNoticeTitle()
  42. {
  43. return noticeTitle;
  44. }
  45. public void setNoticeType(String noticeType)
  46. {
  47. this.noticeType = noticeType;
  48. }
  49. public String getNoticeType()
  50. {
  51. return noticeType;
  52. }
  53. public void setNoticeContent(String noticeContent)
  54. {
  55. this.noticeContent = noticeContent;
  56. }
  57. public String getNoticeContent()
  58. {
  59. return noticeContent;
  60. }
  61. public void setStatus(String status)
  62. {
  63. this.status = status;
  64. }
  65. public String getStatus()
  66. {
  67. return status;
  68. }
  69. @Override
  70. public String toString() {
  71. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  72. .append("noticeId", getNoticeId())
  73. .append("noticeTitle", getNoticeTitle())
  74. .append("noticeType", getNoticeType())
  75. .append("noticeContent", getNoticeContent())
  76. .append("status", getStatus())
  77. .append("createBy", getCreateBy())
  78. .append("createTime", getCreateTime())
  79. .append("updateBy", getUpdateBy())
  80. .append("updateTime", getUpdateTime())
  81. .append("remark", getRemark())
  82. .toString();
  83. }
  84. }