| package com.g9.g9backend.pojo; |
| |
| import com.baomidou.mybatisplus.annotation.IdType; |
| import com.baomidou.mybatisplus.annotation.TableId; |
| import com.fasterxml.jackson.annotation.JsonProperty; |
| import lombok.*; |
| |
| import java.util.Date; |
| |
| /** |
| * Notification 实体类,表示通知的数据模型 |
| * |
| * @author hcy |
| */ |
| @Data |
| @AllArgsConstructor |
| @NoArgsConstructor |
| public class Notification { |
| |
| @TableId(type = IdType.AUTO) |
| private int notificationId; |
| |
| private int userId; |
| |
| private String title; |
| |
| private String content; |
| |
| private Date createAt; |
| |
| @JsonProperty("isRead") |
| private boolean isRead; |
| |
| private int triggeredBy; |
| |
| private int relatedId; |
| } |