admin
2019-02-21 7e57a20c0ccde504c2f2b2b9fd4a9fd7c89d5e92
fanli-common/src/main/java/com/yeshi/fanli/base/entity/user/UserInfo.java
@@ -1,9 +1,16 @@
package com.yeshi.fanli.base.entity.user;
import com.google.gson.annotations.Expose;
import javax.persistence.*;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.google.gson.annotations.Expose;
/**
 * 用户信息
@@ -18,6 +25,7 @@
   public static int STATE_NORMAL = 0;// 正常状态
   public static int STATE_DELETE = 1;// 删除状态
   public static int STATE_FORBIDDEN = 2;// 封禁状态
   public static int STATE_DELETE_OUT_OF_DATE = 4;// 用户长期不活跃被删除
   @Id
   // @GeneratedValue(strategy = GenerationType.SEQUENCE)
@@ -123,7 +131,7 @@
   @org.yeshi.utils.mybatis.Column(name = "rank")
   @Expose
   private Integer rank;// 0 普通  1 铜  2银 3 金
   private Integer rank;// 0 普通 1 铜 2银 3 金
   @org.yeshi.utils.mybatis.Column(name = "phone")
   @Column(name = "phone", length = 16)
@@ -143,7 +151,17 @@
   @Transient
   @Expose
   private String rankNamePicture;// 等级名称图片
   private String rankNamePicture;// 等级名称图片
   @Transient
   private String taoBaoUid;// 淘宝的用户ID
   public String getTaoBaoUid() {
      return taoBaoUid;
   }
   public void setTaoBaoUid(String taoBaoUid) {
      this.taoBaoUid = taoBaoUid;
   }
   public Integer getState() {
      return state;
@@ -187,7 +205,7 @@
      tbPic = "";
      portrait = "";
      myHongBao = BigDecimal.valueOf(0);
      state=0;
      state = 0;
   }
   public UserInfo(long id) {