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 | * Comment 实体类,表示评论的数据模型 | ||||
11 | * | ||||
12 | * @author hcy | ||||
13 | */ | ||||
14 | @Data | ||||
15 | @AllArgsConstructor | ||||
16 | @NoArgsConstructor | ||||
17 | public class Comment { | ||||
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 commentId; |
21 | |||||
22 | private int userId; | ||||
23 | |||||
Seamher | 0140612 | 2025-06-08 19:44:36 +0800 | [diff] [blame^] | 24 | private Integer threadId; |
xiukira | 687b9cb | 2025-05-29 15:15:02 +0800 | [diff] [blame] | 25 | |
Seamher | 0140612 | 2025-06-08 19:44:36 +0800 | [diff] [blame^] | 26 | private Integer resourceId; |
xiukira | 687b9cb | 2025-05-29 15:15:02 +0800 | [diff] [blame] | 27 | |
Seamher | 0140612 | 2025-06-08 19:44:36 +0800 | [diff] [blame^] | 28 | private Integer rewardId; |
xiukira | 687b9cb | 2025-05-29 15:15:02 +0800 | [diff] [blame] | 29 | |
Seamher | 0140612 | 2025-06-08 19:44:36 +0800 | [diff] [blame^] | 30 | private Integer replyId; |
xiukira | 687b9cb | 2025-05-29 15:15:02 +0800 | [diff] [blame] | 31 | |
32 | private String content; | ||||
33 | |||||
34 | private Date createAt; | ||||
35 | } |