cn.binarywang.wx.miniapp.bean.WxMaUserInfo Maven / Gradle / Ivy
package cn.binarywang.wx.miniapp.bean;
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
import lombok.Data;
import java.io.Serializable;
/**
* @author Binary Wang
*/
@Data
public class WxMaUserInfo implements Serializable {
private static final long serialVersionUID = 6719822331555402137L;
private String nickName;
private String gender;
private String language;
private String city;
private String province;
private String country;
private String avatarUrl;
/**
* 不绑定开放平台不会返回这个字段
*/
private String unionId;
private Watermark watermark;
public static WxMaUserInfo fromJson(String json) {
return WxMaGsonBuilder.create().fromJson(json, WxMaUserInfo.class);
}
}