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 | * User 实体类,表示用户的数据模型 |
| 9 | * |
| 10 | * @author hcy |
| 11 | */ |
| 12 | @Data |
| 13 | @AllArgsConstructor |
| 14 | @NoArgsConstructor |
| 15 | public class User { |
| 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 userId; |
| 19 | |
| 20 | private String username; |
| 21 | |
| 22 | private String password; |
| 23 | |
| 24 | private String avatar; |
| 25 | |
| 26 | private int followerCount; |
| 27 | |
| 28 | private int subscriberCount; |
| 29 | |
| 30 | private String signature; |
| 31 | |
| 32 | private int uploadAmount; |
| 33 | |
| 34 | private int purchaseAmount; |
| 35 | |
| 36 | private int credits; |
| 37 | } |