1
zyy
2 days ago a6c07a0526befbbd8194c97eb8f64b84b1a477a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
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;
    }
 
    
}