package com.yami.trading.bean.model;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
@Data
|
@TableName("tz_user")
|
public class User implements Serializable {
|
private static final long serialVersionUID = 2090714647038636896L;
|
/**
|
* ID
|
*/
|
@TableId(type = IdType.ASSIGN_UUID)
|
private String userId;
|
|
/**
|
* 用户名
|
*/
|
private String userName;
|
|
/**
|
* 真实姓名
|
*/
|
|
private String realName;
|
|
/**
|
* 用户邮箱
|
*/
|
|
private String userMail;
|
/**
|
* 邮箱绑定
|
*/
|
private boolean mailBind=false;
|
|
|
/**
|
* 登录密码
|
*/
|
|
private String loginPassword;
|
|
/**
|
* 资金密码
|
*/
|
|
private String safePassword;
|
|
/**
|
* 手机号码
|
*/
|
|
private String userMobile;
|
/**
|
* 手机绑定
|
*/
|
private boolean userMobileBind=false;
|
|
/**
|
* 承兑商类型:0不是承兑商/1后台承兑商/2用户承兑商
|
*/
|
private int c2cUserType;
|
|
|
/**
|
* 修改时间
|
*/
|
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@TableField(fill = FieldFill.UPDATE)
|
private Date updateTime;
|
|
/**
|
* 注册时间
|
*/
|
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@TableField(fill = FieldFill.INSERT)
|
private Date createTime;
|
|
/**
|
* 注册IP
|
*/
|
|
private String userRegip;
|
|
/**
|
* 最后登录时间
|
*/
|
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date userLasttime;
|
|
/**
|
* 最后登录IP
|
*/
|
private String userLastip;
|
|
/**
|
* 谷歌验证器
|
*/
|
private String googleAuthSecret;
|
|
/**
|
* 谷歌验证器是否绑定
|
*/
|
private boolean googleAuthBind = false ;
|
|
/**
|
*/
|
private String roleName;
|
|
|
/**
|
* 状态 1 正常 0 无效
|
*/
|
private Integer status;
|
|
|
/**
|
* 用户code-UID
|
*/
|
private String userCode;
|
|
/**
|
* 推荐人
|
*/
|
private String userRecom;
|
|
/**
|
* 实名认证
|
*/
|
private boolean realNameAuthority = false;
|
|
/**
|
* 高级认证
|
*/
|
private boolean highlevelAuthority = false;
|
|
/**
|
* 会员等级 默认1
|
*
|
* 十进制个位表示系统级别:1/新注册;2/邮箱谷歌手机其中有一个已验证;3/用户实名认证;4/用户高级认证;
|
* 十进制十位表示自定义级别:对应在前端显示为如VIP1 VIP2等级、黄金 白银等级;
|
* 如:级别11表示:新注册的前端显示为VIP1;
|
*/
|
private int userLevel;
|
|
/**
|
* 当日提现限制金额
|
*/
|
private BigDecimal withdrawLimitAmount;
|
|
/**
|
* 当前可用提现流水 WITHDRAW_LIMIT_NOW_AMOUNT
|
*/
|
private BigDecimal withdrawLimitNowAmount;
|
|
/**
|
* 提现权限
|
*/
|
private boolean withdrawAuthority = true;
|
|
/**
|
* 备注
|
*/
|
private String remarks;
|
|
|
private boolean enabled = true;
|
|
// 跟单个人贷款天数设置
|
private String daysSetting;
|
|
/**
|
* 是否获得过赠送金额
|
*/
|
private boolean giftMoneyFlag;
|
|
/**
|
* 是否为赠送用户(达到限制金额)
|
*/
|
private boolean giftUser;
|
|
@ApiModelProperty("登录权限")
|
private boolean loginAuthority = true;
|
|
/**
|
* 账户类型:0 主账户 / 1 模拟账户
|
*/
|
@ApiModelProperty("账户类型 0主账户 1模拟账户")
|
private Integer accountType = 0;
|
|
/**
|
* 信用分,默认100
|
*/
|
@ApiModelProperty("信用分")
|
private Integer creditScore = 100;
|
|
@ApiModelProperty("用户交割盈利")
|
private Double futuresMostPrfitLevel;
|
|
|
public BigDecimal getWithdrawLimitAmount() {
|
return withdrawLimitAmount == null ? new BigDecimal(0) : withdrawLimitAmount;
|
}
|
|
public BigDecimal getWithdrawLimitNowAmount() {
|
return withdrawLimitNowAmount == null ? new BigDecimal(0) : withdrawLimitNowAmount;
|
}
|
|
|
}
|