package com.lxzn.framework.domain.ucenter;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@Data
|
@NoArgsConstructor
|
@TableName(value = "sys_user")
|
public class User implements Serializable {
|
@TableId(value = "user_id")
|
private String userId;
|
|
@TableField(value = "username")
|
private String username;
|
@TableField("nickname")
|
private String nickname;
|
@TableField("password")
|
private String password;
|
@TableField("salt")
|
private String salt;
|
@TableField("user_type")
|
private Integer userType;
|
@TableField("user_status")
|
private Integer userStatus;
|
@TableField("password_type")
|
private Integer passwordType; //1 初始化 2 正常
|
@TableField("password_number")
|
private Integer passwordNumber ;// 1, 2,3
|
private Date passwordCycle;
|
@TableField("user_pic")
|
private String userPic;
|
@TableField("birthday")
|
@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
|
private Date birthday;
|
@TableField("sex")
|
private Integer sex;
|
@TableField("phone_no")
|
private String phoneNo;
|
@TableField("email")
|
private String email;
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
@TableField(value = "create_time", fill = FieldFill.INSERT)
|
private Date createTime;
|
@TableField(value = "update_time", fill = FieldFill.UPDATE)
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
private Date updateTime;
|
@TableField(value = "create_user",fill = FieldFill.INSERT)
|
private String createUser;
|
@TableField(value = "update_user", fill = FieldFill.UPDATE)
|
private String updateUser;
|
@JsonIgnore
|
@TableLogic
|
@TableField(value = "delete_flag", select = false)
|
private Integer deleteFlag = 0;
|
}
|