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.
test/src/main/java/com/entity/model/YonghuModel.java

251 lines
4.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.entity.model;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 用户
* 接收传参的实体类
*(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了
* 取自ModelAndView 的model名称
*/
public class YonghuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private Integer id;
/**
* 账户
*/
private String username;
/**
* 密码
*/
private String password;
/**
* 用户姓名
*/
private String yonghuName;
/**
* 头像
*/
private String yonghuPhoto;
/**
* 用户手机号
*/
private String yonghuPhone;
/**
* 用户身份证号
*/
private String yonghuIdNumber;
/**
* 邮箱
*/
private String yonghuEmail;
/**
* 性别
*/
private Integer sexTypes;
/**
* 余额
*/
private Double newMoney;
/**
* 假删
* 用一个整数来标记用户是否被逻辑删除例如0表示未删除1表示已删除
*/
private Integer yonghuDelete;
/**
* 创建时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date createTime;
/**
* 获取:主键
*/
public Integer getId() {
return id;
}
/**
* 设置:主键
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取:账户
*/
public String getUsername() {
return username;
}
/**
* 设置:账户
*/
public void setUsername(String username) {
this.username = username;
}
/**
* 获取:密码
*/
public String getPassword() {
return password;
}
/**
* 设置:密码
*/
public void setPassword(String password) {
this.password = password;
}
/**
* 获取:用户姓名
*/
public String getYonghuName() {
return yonghuName;
}
/**
* 设置:用户姓名
*/
public void setYonghuName(String yonghuName) {
this.yonghuName = yonghuName;
}
/**
* 获取:头像
*/
public String getYonghuPhoto() {
return yonghuPhoto;
}
/**
* 设置:头像
*/
public void setYonghuPhoto(String yonghuPhoto) {
this.yonghuPhoto = yonghuPhoto;
}
/**
* 获取:用户手机号
*/
public String getYonghuPhone() {
return yonghuPhone;
}
/**
* 设置:用户手机号
*/
public void setYonghuPhone(String yonghuPhone) {
this.yonghuPhone = yonghuPhone;
}
/**
* 获取:用户身份证号
*/
public String getYonghuIdNumber() {
return yonghuIdNumber;
}
/**
* 设置:用户身份证号
*/
public void setYonghuIdNumber(String yonghuIdNumber) {
this.yonghuIdNumber = yonghuIdNumber;
}
/**
* 获取:邮箱
*/
public String getYonghuEmail() {
return yonghuEmail;
}
/**
* 设置:邮箱
*/
public void setYonghuEmail(String yonghuEmail) {
this.yonghuEmail = yonghuEmail;
}
/**
* 获取:性别
*/
public Integer getSexTypes() {
return sexTypes;
}
/**
* 设置:性别
*/
public void setSexTypes(Integer sexTypes) {
this.sexTypes = sexTypes;
}
/**
* 获取:余额
*/
public Double getNewMoney() {
return newMoney;
}
/**
* 设置:余额
*/
public void setNewMoney(Double newMoney) {
this.newMoney = newMoney;
}
/**
* 获取:假删
*/
public Integer getYonghuDelete() {
return yonghuDelete;
}
/**
* 设置:假删
*/
public void setYonghuDelete(Integer yonghuDelete) {
this.yonghuDelete = yonghuDelete;
}
/**
* 获取:创建时间
*/
public Date getCreateTime() {
return createTime;
}
/**
* 设置:创建时间
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}