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