21 lines
644 B
Java
21 lines
644 B
Java
|
|
package org.example.pojo;
|
||
|
|
|
||
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||
|
|
import lombok.Data;
|
||
|
|
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
//lombok插件 在编译阶段 为实体类自动生成setter getter toString
|
||
|
|
//pom文件中引入依赖 在实体类上添加注解
|
||
|
|
@Data
|
||
|
|
public class User {
|
||
|
|
private Integer id;//主键ID
|
||
|
|
private String username;//用户名
|
||
|
|
@JsonIgnore
|
||
|
|
private String password;//密码
|
||
|
|
private String nickname;//昵称
|
||
|
|
private String email;//邮箱
|
||
|
|
private String userPic;//用户头像地址
|
||
|
|
private LocalDateTime createTime;//创建时间
|
||
|
|
private LocalDateTime updateTime;//更新时间
|
||
|
|
}
|