You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
183 lines
3.3 KiB
183 lines
3.3 KiB
package com.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotations.TableId;
|
|
import com.baomidou.mybatisplus.annotations.TableName;
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotEmpty;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import org.apache.commons.beanutils.BeanUtils;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
import com.baomidou.mybatisplus.enums.FieldFill;
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
|
|
|
|
|
/**
|
|
* 用户
|
|
* 数据库通用操作实体类(普通增删改查)
|
|
* @author
|
|
* @email
|
|
* @date 2023-02-17 16:59:28
|
|
*/
|
|
@TableName("yonghu")
|
|
public class YonghuEntity<T> implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
public YonghuEntity() {
|
|
|
|
}
|
|
|
|
public YonghuEntity(T t) {
|
|
try {
|
|
BeanUtils.copyProperties(this, t);
|
|
} catch (IllegalAccessException | InvocationTargetException e) {
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 主键id
|
|
*/
|
|
@TableId
|
|
private Long id;
|
|
/**
|
|
* 用户账号
|
|
*/
|
|
|
|
private String yonghuzhanghao;
|
|
|
|
/**
|
|
* 密码
|
|
*/
|
|
|
|
private String mima;
|
|
|
|
/**
|
|
* 用户姓名
|
|
*/
|
|
|
|
private String yonghuxingming;
|
|
|
|
/**
|
|
* 性别
|
|
*/
|
|
|
|
private String xingbie;
|
|
|
|
/**
|
|
* 用户电话
|
|
*/
|
|
|
|
private String yonghudianhua;
|
|
|
|
/**
|
|
* 头像
|
|
*/
|
|
|
|
private String touxiang;
|
|
|
|
|
|
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
|
|
@DateTimeFormat
|
|
private Date addtime;
|
|
|
|
public Date getAddtime() {
|
|
return addtime;
|
|
}
|
|
public void setAddtime(Date addtime) {
|
|
this.addtime = addtime;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
/**
|
|
* 设置:用户账号
|
|
*/
|
|
public void setYonghuzhanghao(String yonghuzhanghao) {
|
|
this.yonghuzhanghao = yonghuzhanghao;
|
|
}
|
|
/**
|
|
* 获取:用户账号
|
|
*/
|
|
public String getYonghuzhanghao() {
|
|
return yonghuzhanghao;
|
|
}
|
|
/**
|
|
* 设置:密码
|
|
*/
|
|
public void setMima(String mima) {
|
|
this.mima = mima;
|
|
}
|
|
/**
|
|
* 获取:密码
|
|
*/
|
|
public String getMima() {
|
|
return mima;
|
|
}
|
|
/**
|
|
* 设置:用户姓名
|
|
*/
|
|
public void setYonghuxingming(String yonghuxingming) {
|
|
this.yonghuxingming = yonghuxingming;
|
|
}
|
|
/**
|
|
* 获取:用户姓名
|
|
*/
|
|
public String getYonghuxingming() {
|
|
return yonghuxingming;
|
|
}
|
|
/**
|
|
* 设置:性别
|
|
*/
|
|
public void setXingbie(String xingbie) {
|
|
this.xingbie = xingbie;
|
|
}
|
|
/**
|
|
* 获取:性别
|
|
*/
|
|
public String getXingbie() {
|
|
return xingbie;
|
|
}
|
|
/**
|
|
* 设置:用户电话
|
|
*/
|
|
public void setYonghudianhua(String yonghudianhua) {
|
|
this.yonghudianhua = yonghudianhua;
|
|
}
|
|
/**
|
|
* 获取:用户电话
|
|
*/
|
|
public String getYonghudianhua() {
|
|
return yonghudianhua;
|
|
}
|
|
/**
|
|
* 设置:头像
|
|
*/
|
|
public void setTouxiang(String touxiang) {
|
|
this.touxiang = touxiang;
|
|
}
|
|
/**
|
|
* 获取:头像
|
|
*/
|
|
public String getTouxiang() {
|
|
return touxiang;
|
|
}
|
|
|
|
}
|