xiukira | 687b9cb | 2025-05-29 15:15:02 +0800 | [diff] [blame] | 1 | package com.g9.g9backend.pojo; |
2 | |||||
3 | import com.baomidou.mybatisplus.annotation.TableId; | ||||
4 | import lombok.*; | ||||
5 | |||||
6 | import java.util.Date; | ||||
7 | |||||
8 | /** | ||||
9 | * Notification 实体类,表示通知的数据模型 | ||||
10 | * | ||||
11 | * @author hcy | ||||
12 | */ | ||||
13 | @Data | ||||
14 | @AllArgsConstructor | ||||
15 | @NoArgsConstructor | ||||
16 | public class Notification { | ||||
17 | |||||
18 | @TableId | ||||
19 | private int notificationId; | ||||
20 | |||||
21 | private int userId; | ||||
22 | |||||
23 | private String type; | ||||
24 | |||||
25 | private String title; | ||||
26 | |||||
27 | private String content; | ||||
28 | |||||
29 | private Date createAt; | ||||
30 | |||||
31 | private boolean isRead; | ||||
32 | |||||
33 | private int triggeredBy; | ||||
34 | |||||
35 | private int relatedId; | ||||
36 | } |