| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- package com.ruoyi.system.domain;
- import java.util.Date;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.ruoyi.common.xss.Xss;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import com.ruoyi.common.annotation.Excel;
- import com.ruoyi.common.core.domain.BaseEntity;
- import javax.validation.constraints.NotBlank;
- import javax.validation.constraints.Size;
- /**
- * 公告对象 post_notice
- *
- * @author ruoyi
- * @date 2023-01-14
- */
- public class PostNotice extends BaseEntity
- {
- private static final long serialVersionUID = 1L;
- /** 公告id */
- private Long noticeId;
- /** 公告标题 */
- @Excel(name = "公告标题")
- @Xss(message = "公告标题不能包含脚本字符")
- private String noticeTitle;
- /** 发布时间 */
- @JsonFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
- private Date noticeTime;
- /** 公告详情id */
- @Excel(name = "公告详情id")
- private String noticeContent;
- public Long getNoticeId() {
- return noticeId;
- }
- public void setNoticeId(Long noticeId) {
- this.noticeId = noticeId;
- }
- public String getNoticeTitle() {
- return noticeTitle;
- }
- public void setNoticeTitle(String noticeTitle) {
- this.noticeTitle = noticeTitle;
- }
- public Date getNoticeTime() {
- return noticeTime;
- }
- public void setNoticeTime(Date noticeTime) {
- this.noticeTime = noticeTime;
- }
- public String getNoticeContent() {
- return noticeContent;
- }
- public void setNoticeContent(String noticeContent) {
- this.noticeContent = noticeContent;
- }
- @Override
- public String toString() {
- return "PostNotice{" +
- "noticeId=" + noticeId +
- ", noticeTitle='" + noticeTitle + '\'' +
- ", noticeTime=" + noticeTime +
- ", noticeContent='" + noticeContent + '\'' +
- '}';
- }
- }
|