package com.dl.system.domain;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.dl.common.core.domain.BaseEntity;
|
import com.dl.common.xss.Xss;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.Size;
|
|
|
/**
|
* 通知公告表 sys_notice
|
*
|
* @author Lion Li
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@TableName("sys_notice")
|
public class SysNotice extends BaseEntity {
|
|
/**
|
* 公告ID
|
*/
|
// @TableId(value = "notice_id")
|
// private Long noticeId;
|
@TableId(value = "notice_id",type = IdType.NONE)
|
private String noticeId;
|
|
/**
|
* 公告标题
|
*/
|
@Xss(message = "公告标题不能包含脚本字符")
|
@NotBlank(message = "公告标题不能为空")
|
@Size(min = 0, max = 50, message = "公告标题不能超过{max}个字符")
|
private String noticeTitle;
|
|
/**
|
* 公告类型(1通知 2公告)
|
*/
|
private String noticeType;
|
|
/**
|
* 公告内容
|
*/
|
private String noticeContent;
|
|
/**
|
* 公告状态(0正常 1关闭)
|
*/
|
private String status;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|