mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
issue #90 WxMpUser添加sexId字段,和微信返回的性别字段保持一致
This commit is contained in:
@@ -20,7 +20,11 @@ public class WxMpUser {
|
||||
protected String headImgUrl;
|
||||
protected Long subscribeTime;
|
||||
protected String unionId;
|
||||
|
||||
protected Integer sexId;
|
||||
|
||||
public Boolean getSubscribe() {
|
||||
return subscribe;
|
||||
}
|
||||
public Boolean isSubscribe() {
|
||||
return subscribe;
|
||||
}
|
||||
@@ -87,7 +91,16 @@ public class WxMpUser {
|
||||
public void setUnionId(String unionId) {
|
||||
this.unionId = unionId;
|
||||
}
|
||||
|
||||
|
||||
public Integer getSexId() {
|
||||
|
||||
return sexId;
|
||||
}
|
||||
|
||||
public void setSexId(Integer sexId) {
|
||||
this.sexId = sexId;
|
||||
}
|
||||
|
||||
public static WxMpUser fromJson(String json) {
|
||||
return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpUser.class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user