提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.system.domain; |
X |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.IdType; |
|
4 |
import com.baomidou.mybatisplus.annotation.TableId; |
|
5 |
import com.baomidou.mybatisplus.annotation.TableName; |
|
6 |
import com.dl.common.core.domain.BaseEntity; |
|
7 |
import com.dl.common.xss.Xss; |
|
8 |
import lombok.Data; |
|
9 |
import lombok.EqualsAndHashCode; |
|
10 |
|
|
11 |
import javax.validation.constraints.NotBlank; |
|
12 |
import javax.validation.constraints.Size; |
|
13 |
|
|
14 |
|
|
15 |
/** |
|
16 |
* 通知公告表 sys_notice |
|
17 |
* |
|
18 |
* @author Lion Li |
|
19 |
*/ |
|
20 |
@Data |
|
21 |
@EqualsAndHashCode(callSuper = true) |
|
22 |
@TableName("sys_notice") |
|
23 |
public class SysNotice extends BaseEntity { |
|
24 |
|
|
25 |
/** |
|
26 |
* 公告ID |
|
27 |
*/ |
|
28 |
// @TableId(value = "notice_id") |
|
29 |
// private Long noticeId; |
|
30 |
@TableId(value = "notice_id",type = IdType.NONE) |
|
31 |
private String noticeId; |
|
32 |
|
|
33 |
/** |
|
34 |
* 公告标题 |
|
35 |
*/ |
|
36 |
@Xss(message = "公告标题不能包含脚本字符") |
|
37 |
@NotBlank(message = "公告标题不能为空") |
|
38 |
@Size(min = 0, max = 50, message = "公告标题不能超过{max}个字符") |
|
39 |
private String noticeTitle; |
|
40 |
|
|
41 |
/** |
|
42 |
* 公告类型(1通知 2公告) |
|
43 |
*/ |
|
44 |
private String noticeType; |
|
45 |
|
|
46 |
/** |
|
47 |
* 公告内容 |
|
48 |
*/ |
|
49 |
private String noticeContent; |
|
50 |
|
|
51 |
/** |
|
52 |
* 公告状态(0正常 1关闭) |
|
53 |
*/ |
|
54 |
private String status; |
|
55 |
|
|
56 |
/** |
|
57 |
* 备注 |
|
58 |
*/ |
|
59 |
private String remark; |
|
60 |
|
|
61 |
} |