package com.whyc.pojo;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import org.apache.ibatis.type.Alias;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
@Alias("User")
|
@TableName( schema = "`db_cluster_test`",value = "tb_user")
|
public class User implements Serializable {
|
private Integer id;
|
private String name;
|
private String password;
|
private String salt;
|
@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
public User() {
|
}
|
|
public User(Integer id, String name) {
|
this.id = id;
|
this.name = name;
|
}
|
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPassword() {
|
return password;
|
}
|
|
public void setPassword(String password) {
|
this.password = password;
|
}
|
|
public String getSalt() {
|
return salt;
|
}
|
|
public void setSalt(String salt) {
|
this.salt = salt;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
}
|