package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import java.util.Date;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
* 用户基础信息
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2023-02-14
|
*/
|
@TableName("t_app_user")
|
public class TAppUser extends Model<TAppUser> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 用户昵称
|
*/
|
private String nickname;
|
/**
|
* 手机号
|
*/
|
private String phone;
|
/**
|
* 性别(1=男,2=女)
|
*/
|
private Integer sex;
|
/**
|
* 头像
|
*/
|
private String avatar;
|
/**
|
* 微信openid
|
*/
|
private String openid;
|
/**
|
* 微信unionid
|
*/
|
private String unionid;
|
/**
|
* 紧急联系人
|
*/
|
private String emergencyContact;
|
/**
|
* 紧急联系电话
|
*/
|
private String emergencyPhone;
|
/**
|
* 账户余额
|
*/
|
private Double accountBalance;
|
/**
|
* 用户标签id
|
*/
|
private Integer userTagId;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
private Integer status;
|
/**
|
* 添加时间
|
*/
|
private Date createTime;
|
|
/**
|
* 是否异常 1正常 2异常
|
*/
|
@TableField(value = "is_exception")
|
private Integer isException;
|
|
/**
|
* 启用冻结理由
|
*/
|
@TableField(value = "remark")
|
private String remark;
|
|
/**
|
* 取消订单次数,取消一次添加一次,若成功接单清零
|
*/
|
@TableField(value = "cancelCount")
|
private Integer cancelCount;
|
|
@ApiModelProperty(value = "是否拥有9折优惠 1是 0否")
|
@TableField(value = "havDiscount")
|
private Integer havDiscount;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "注册开始时间")
|
private Date startTime;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "注册结束时间")
|
private Date endTime;
|
|
public Integer getHavDiscount() {
|
return havDiscount;
|
}
|
|
public void setHavDiscount(Integer havDiscount) {
|
this.havDiscount = havDiscount;
|
}
|
|
public Integer getCancelCount() {
|
return cancelCount;
|
}
|
|
public void setCancelCount(Integer cancelCount) {
|
this.cancelCount = cancelCount;
|
}
|
|
public Integer getIsException() {
|
return isException;
|
}
|
|
public void setIsException(Integer isException) {
|
this.isException = isException;
|
}
|
|
public String getRemark() {
|
return remark;
|
}
|
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
public Date getStartTime() {
|
return startTime;
|
}
|
|
public void setStartTime(Date startTime) {
|
this.startTime = startTime;
|
}
|
|
public Date getEndTime() {
|
return endTime;
|
}
|
|
public void setEndTime(Date endTime) {
|
this.endTime = endTime;
|
}
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getNickname() {
|
return nickname;
|
}
|
|
public void setNickname(String nickname) {
|
this.nickname = nickname;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public Integer getSex() {
|
return sex;
|
}
|
|
public void setSex(Integer sex) {
|
this.sex = sex;
|
}
|
|
public String getAvatar() {
|
return avatar;
|
}
|
|
public void setAvatar(String avatar) {
|
this.avatar = avatar;
|
}
|
|
public String getOpenid() {
|
return openid;
|
}
|
|
public void setOpenid(String openid) {
|
this.openid = openid;
|
}
|
|
public String getUnionid() {
|
return unionid;
|
}
|
|
public void setUnionid(String unionid) {
|
this.unionid = unionid;
|
}
|
|
public String getEmergencyContact() {
|
return emergencyContact;
|
}
|
|
public void setEmergencyContact(String emergencyContact) {
|
this.emergencyContact = emergencyContact;
|
}
|
|
public String getEmergencyPhone() {
|
return emergencyPhone;
|
}
|
|
public void setEmergencyPhone(String emergencyPhone) {
|
this.emergencyPhone = emergencyPhone;
|
}
|
|
public Double getAccountBalance() {
|
return accountBalance;
|
}
|
|
public void setAccountBalance(Double accountBalance) {
|
this.accountBalance = accountBalance;
|
}
|
|
public Integer getUserTagId() {
|
return userTagId;
|
}
|
|
public void setUserTagId(Integer userTagId) {
|
this.userTagId = userTagId;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "TAppUser{" +
|
"id=" + id +
|
", nickname=" + nickname +
|
", phone=" + phone +
|
", sex=" + sex +
|
", avatar=" + avatar +
|
", openid=" + openid +
|
", unionid=" + unionid +
|
", emergencyContact=" + emergencyContact +
|
", emergencyPhone=" + emergencyPhone +
|
", accountBalance=" + accountBalance +
|
", userTagId=" + userTagId +
|
", status=" + status +
|
", createTime=" + createTime +
|
"}";
|
}
|
}
|