blob: 0645824238c094df4cf37edc2fab5c40a6445dec [file] [log] [blame]
wuchimedesa1bf2782025-03-27 15:08:54 +08001package com.example.g8backend.entity;
2
3import com.baomidou.mybatisplus.annotation.IdType;
wuchimedesa1bf2782025-03-27 15:08:54 +08004import com.baomidou.mybatisplus.annotation.TableId;
5import com.baomidou.mybatisplus.annotation.TableName;
6import lombok.Data;
夜雨声烦7e6eb382025-04-22 01:18:00 +08007import lombok.experimental.Accessors;
wuchimedesa1bf2782025-03-27 15:08:54 +08008
夜雨声烦35c9da92025-05-20 00:12:48 +08009import java.time.LocalDate;
10
wuchimedesa1bf2782025-03-27 15:08:54 +080011@Data
wuchimedes079c1632025-04-02 22:01:20 +080012@TableName("users")
夜雨声烦7e6eb382025-04-22 01:18:00 +080013@Accessors(chain = true)
wuchimedesa1bf2782025-03-27 15:08:54 +080014public class User {
15 @TableId(type = IdType.AUTO)
wuchimedes079c1632025-04-02 22:01:20 +080016 private Long userId;
wuchimedesa1bf2782025-03-27 15:08:54 +080017
wuchimedesa0649c62025-04-05 15:53:39 +080018 private String passkey;
wuchimedes079c1632025-04-02 22:01:20 +080019 private String password;
20 private String userName;
wuchimedesa1bf2782025-03-27 15:08:54 +080021 private String email;
夜雨声烦35c9da92025-05-20 00:12:48 +080022 private String userLevel; // 用户等级(lv1/lv2/lv3/vip)
23 private Integer signinCount;
24 private LocalDate lastSigninDate;
夜雨声烦451d71c2025-05-20 00:58:36 +080025 private String role;
wuchimedesa1bf2782025-03-27 15:08:54 +080026
27 @Override
28 public String toString() {
29 return "User{" +
wuchimedes079c1632025-04-02 22:01:20 +080030 "id=" + userId +
31 ", name='" + userName + '\'' +
wuchimedesa1bf2782025-03-27 15:08:54 +080032 ", email='" + email + '\'' +
33 '}';
34 }
wuchimedesa1bf2782025-03-27 15:08:54 +080035}