package com.ks.daylucky.pojo.DO;
|
|
import com.google.gson.annotations.Expose;
|
import org.springframework.data.annotation.Transient;
|
|
import javax.validation.constraints.NotNull;
|
import java.util.Date;
|
|
public class UserInfo {
|
//正常用户
|
public final static int TYPE_NORMAL = 1;
|
//虚拟用户
|
public final static int TYPE_VIRTUAL = 2;
|
//尚未登录
|
public final static int STATE_NO_LOGIN = 0;
|
//已经登录
|
public final static int STATE_LOGINED = 1;
|
|
|
@Expose
|
private Long id;
|
@Expose
|
@NotNull(message = "应用ID不能为空")
|
private Long appId;
|
|
@Expose
|
@NotNull(message = "应用唯一标识不能为空")
|
private String identifyCode;
|
|
@Expose
|
private String nickName;
|
|
@Expose
|
private String portrait;
|
|
private String mobile;
|
|
private String alipayUid;
|
|
private String alipayPortrait;
|
|
private String alipayNickName;
|
|
private String wxOpenId;
|
|
private String wxUnionId;
|
|
private String wxPortrait;
|
|
private Date createTime;
|
|
private Date updateTime;
|
|
private Integer type;
|
|
private Integer state;
|
|
private String stateDesc;
|
|
@Transient
|
private UserInfoExtra userInfoExtra;
|
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public Integer getState() {
|
return state;
|
}
|
|
public void setState(Integer state) {
|
this.state = state;
|
}
|
|
public String getStateDesc() {
|
return stateDesc;
|
}
|
|
public void setStateDesc(String stateDesc) {
|
this.stateDesc = stateDesc;
|
}
|
|
public String getAlipayNickName() {
|
return alipayNickName;
|
}
|
|
public void setAlipayNickName(String alipayNickName) {
|
this.alipayNickName = alipayNickName;
|
}
|
|
public UserInfoExtra getUserInfoExtra() {
|
return userInfoExtra;
|
}
|
|
public void setUserInfoExtra(UserInfoExtra userInfoExtra) {
|
this.userInfoExtra = userInfoExtra;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getAppId() {
|
return appId;
|
}
|
|
public void setAppId(Long appId) {
|
this.appId = appId;
|
}
|
|
public String getIdentifyCode() {
|
return identifyCode;
|
}
|
|
public void setIdentifyCode(String identifyCode) {
|
this.identifyCode = identifyCode == null ? null : identifyCode.trim();
|
}
|
|
public String getNickName() {
|
return nickName;
|
}
|
|
public void setNickName(String nickName) {
|
this.nickName = nickName == null ? null : nickName.trim();
|
}
|
|
public String getPortrait() {
|
return portrait;
|
}
|
|
public void setPortrait(String portrait) {
|
this.portrait = portrait == null ? null : portrait.trim();
|
}
|
|
public String getMobile() {
|
return mobile;
|
}
|
|
public void setMobile(String mobile) {
|
this.mobile = mobile == null ? null : mobile.trim();
|
}
|
|
public String getAlipayUid() {
|
return alipayUid;
|
}
|
|
public void setAlipayUid(String alipayUid) {
|
this.alipayUid = alipayUid == null ? null : alipayUid.trim();
|
}
|
|
public String getAlipayPortrait() {
|
return alipayPortrait;
|
}
|
|
public void setAlipayPortrait(String alipayPortrait) {
|
this.alipayPortrait = alipayPortrait == null ? null : alipayPortrait.trim();
|
}
|
|
public String getWxOpenId() {
|
return wxOpenId;
|
}
|
|
public void setWxOpenId(String wxOpenId) {
|
this.wxOpenId = wxOpenId == null ? null : wxOpenId.trim();
|
}
|
|
public String getWxUnionId() {
|
return wxUnionId;
|
}
|
|
public void setWxUnionId(String wxUnionId) {
|
this.wxUnionId = wxUnionId == null ? null : wxUnionId.trim();
|
}
|
|
public String getWxPortrait() {
|
return wxPortrait;
|
}
|
|
public void setWxPortrait(String wxPortrait) {
|
this.wxPortrait = wxPortrait == null ? null : wxPortrait.trim();
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
}
|