| | |
| | | package com.ruoyi.system.domain;
|
| | |
|
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.Size;
|
| | | import jakarta.validation.constraints.NotBlank;
|
| | | import jakarta.validation.constraints.Size;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | |
|
| | | import com.fasterxml.jackson.annotation.JsonProperty;
|
| | | import com.ruoyi.common.core.web.domain.BaseEntity;
|
| | | import com.ruoyi.common.core.xss.Xss;
|
| | |
|
| | | /**
|
| | | * 通知公告表 sys_notice
|
| | |
| | | /** 公告状态(0正常 1关闭) */
|
| | | private String status;
|
| | |
|
| | | /** 是否已读 */
|
| | | @JsonProperty("isRead")
|
| | | private boolean isRead;
|
| | |
|
| | | public Long getNoticeId()
|
| | | {
|
| | | return noticeId;
|
| | |
| | | this.noticeTitle = noticeTitle;
|
| | | }
|
| | |
|
| | | @Xss(message = "公告标题不能包含脚本字符")
|
| | | @NotBlank(message = "公告标题不能为空")
|
| | | @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
|
| | | public String getNoticeTitle()
|
| | |
| | | return status;
|
| | | }
|
| | |
|
| | | public boolean getIsRead()
|
| | | {
|
| | | return isRead;
|
| | | }
|
| | |
|
| | | public void setIsRead(boolean isRead)
|
| | | {
|
| | | this.isRead = isRead;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String toString() {
|
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|