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 | * Thread 实体类,表示评论的数据模型 | ||||
10 | * | ||||
11 | * @author hcy | ||||
12 | */ | ||||
13 | @Data | ||||
14 | @AllArgsConstructor | ||||
15 | @NoArgsConstructor | ||||
16 | public class Thread { | ||||
17 | |||||
18 | @TableId | ||||
19 | private int threadId; | ||||
20 | |||||
21 | private int userId; | ||||
22 | |||||
23 | private String threadPicture; | ||||
24 | |||||
25 | private String title; | ||||
26 | |||||
27 | private String content; | ||||
28 | |||||
29 | private int likes; | ||||
30 | |||||
31 | private boolean isLike; | ||||
32 | |||||
33 | private Date createAt; | ||||
34 | |||||
35 | private int commentNumber; | ||||
36 | |||||
37 | private int communityId; | ||||
38 | } |