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