|
|
@@ -14,79 +14,44 @@ import java.io.Serializable;
|
|
|
/**
|
|
|
* Created by ljy on 2018/3/17.
|
|
|
*/
|
|
|
-@Table(name = "user")
|
|
|
public class UserEntity implements Serializable {
|
|
|
|
|
|
- @Column(name = "id", isId = true, autoGen = true)
|
|
|
private int _id;//11,
|
|
|
- @Column(name = "user_id")
|
|
|
private String id;//11,
|
|
|
- @Column(name = "mobile")
|
|
|
private String mobile;//13688480841,
|
|
|
- @Column(name = "nickname")
|
|
|
private String nickname;//test332211,
|
|
|
- @Column(name = "user_name")
|
|
|
private String user_name;//test332211,
|
|
|
- @Column(name = "set_password")
|
|
|
private int set_password = 0;//test332211,
|
|
|
- @Column(name = "balance")
|
|
|
private String balance;//0,
|
|
|
- @Column(name = "invitation_code")
|
|
|
private String invitation_code;//032033476,
|
|
|
- @Column(name = "parent_code")
|
|
|
private String parent_code;//,
|
|
|
- @Column(name = "total_asset")
|
|
|
private String total_asset;//0,
|
|
|
- @Column(name = "last_login_time")
|
|
|
private String last_login_time;//1521254162,
|
|
|
- @Column(name = "create_time")
|
|
|
private String create_time;//1521254162,
|
|
|
- @Column(name = "update_time")
|
|
|
private String update_time;//1521254162,
|
|
|
- @Column(name = "avatar")
|
|
|
private String avatar;//,
|
|
|
- @Column(name = "access_token")
|
|
|
private String access_token;//_T6fiXabS5G_pQhLLP1qKA,
|
|
|
- @Column(name = "refresh_token")
|
|
|
private String refresh_token;//AiO5n79nT-6vjratlulxkg,
|
|
|
- @Column(name = "open_id")
|
|
|
private String open_id;//2804526,
|
|
|
- @Column(name = "real_name")
|
|
|
private String real_name;//,
|
|
|
- @Column(name = "id_number")
|
|
|
private String id_number;//,
|
|
|
- @Column(name = "bank_card")
|
|
|
private String bank_card;//,
|
|
|
- @Column(name = "bank_card_mobile")
|
|
|
private String bank_card_mobile;//,
|
|
|
- @Column(name = "total_withdraw")
|
|
|
private String total_withdraw;//0,
|
|
|
- @Column(name = "wx_openid")
|
|
|
private String wx_openid;//
|
|
|
- @Column(name = "wx_nickname")
|
|
|
private String wx_nickname;
|
|
|
- @Column(name = "share_link")
|
|
|
private String share_link;
|
|
|
- @Column(name = "newbie_task_status")
|
|
|
private int newbie_task_status;
|
|
|
- @Column(name = "is_new")
|
|
|
private int is_new;//1新用户 2老用户
|
|
|
- @Column(name = "is_agent")
|
|
|
private int is_agent;//0不是代理 1是代理
|
|
|
- @Column(name = "certification_count")
|
|
|
private int certification_count;//实名认证次数
|
|
|
- @Column(name = "must_bind_mobile")
|
|
|
private int must_bind_mobile;//是否必须绑定手机号 0不是 1是
|
|
|
- @Column(name = "gender")
|
|
|
private int gender;
|
|
|
- @Column(name = "birthday")
|
|
|
private String birthday;
|
|
|
- @Column(name = "package_cate")//1官方包 2邀请包
|
|
|
private int package_cate;
|
|
|
- @Column(name = "create_time_line")
|
|
|
private int create_time_line;//1:小绵羊3.0之前的用户(注:以后如果再次有这种区分之前用户的需求就陆续加一)
|
|
|
- @Column(name = "bind_flag")
|
|
|
private int bind_flag;//绑定表示 二进制形式 从低到高 第一位手机号 第二位QQ号 第三位微信
|
|
|
+ private int level;//用户等级 0:普通用户 1:VIP用户
|
|
|
|
|
|
public int getPackage_cate() {
|
|
|
return package_cate;
|
|
|
@@ -336,6 +301,14 @@ public class UserEntity implements Serializable {
|
|
|
this.certification_count = certification_count;
|
|
|
}
|
|
|
|
|
|
+ public int getLevel() {
|
|
|
+ return level;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLevel(int level) {
|
|
|
+ this.level = level;
|
|
|
+ }
|
|
|
+
|
|
|
public int getMust_bind_mobile() {
|
|
|
return must_bind_mobile;
|
|
|
}
|
|
|
@@ -427,4 +400,10 @@ public class UserEntity implements Serializable {
|
|
|
public boolean alreadyExchangeCoupon() {
|
|
|
return false;
|
|
|
}
|
|
|
+ //用户等级 0:普通用户 1:VIP用户
|
|
|
+ public static final int LEVEL_VIP = 1;
|
|
|
+ //该用户是否是VIP用户
|
|
|
+ public boolean isVip(){
|
|
|
+ return level >= LEVEL_VIP;
|
|
|
+ }
|
|
|
}
|