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 | /** |
| 8 | * Community 实体类,表示社区的数据模型 |
| 9 | * |
| 10 | * @author hcy |
| 11 | */ |
| 12 | @Data |
| 13 | @AllArgsConstructor |
| 14 | @NoArgsConstructor |
| 15 | public class Community { |
| 16 | |
xiukira | d0a7a08 | 2025-06-05 16:28:08 +0800 | [diff] [blame^] | 17 | @TableId(type = IdType.AUTO) |
xiukira | 687b9cb | 2025-05-29 15:15:02 +0800 | [diff] [blame] | 18 | private int communityId; |
| 19 | |
| 20 | private String communityName; |
| 21 | |
| 22 | private String communityPicture; |
| 23 | |
| 24 | private String description; |
| 25 | |
| 26 | private float hot; |
| 27 | |
| 28 | private String type; |
| 29 | |
| 30 | private int threadNumber; |
| 31 | |
| 32 | private int resourceId; |
| 33 | } |