From 19791d8943b43c219fceb19a50e0a916cb7e123d Mon Sep 17 00:00:00 2001 From: jinyu Date: Sat, 24 Oct 2015 17:42:11 +0800 Subject: [PATCH] =?UTF-8?q?weixin4j-mp:=E6=96=B0=E5=A2=9Eremark=E5=92=8Cgr?= =?UTF-8?q?oupid=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/foxinmy/weixin4j/mp/model/User.java | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/weixin4j-mp/src/main/java/com/foxinmy/weixin4j/mp/model/User.java b/weixin4j-mp/src/main/java/com/foxinmy/weixin4j/mp/model/User.java index a56c20b0..126c06f5 100644 --- a/weixin4j-mp/src/main/java/com/foxinmy/weixin4j/mp/model/User.java +++ b/weixin4j-mp/src/main/java/com/foxinmy/weixin4j/mp/model/User.java @@ -77,12 +77,21 @@ public class User implements Serializable { */ @JSONField(name = "unionid") private String unionId; + /** + * 公众号运营者对粉丝的备注,公众号运营者可在微信公众平台用户管理界面对粉丝添加备注 + */ + private String remark; + /** + * 用户所在的分组ID + */ + @JSONField(name = "groupid") + private int groupId; public String getOpenId() { return openId; } - public void setOpenid(String openId) { + public void setOpenId(String openId) { this.openId = openId; } @@ -204,6 +213,22 @@ public class User implements Serializable { this.unionId = unionId; } + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public int getGroupId() { + return groupId; + } + + public void setGroupId(int groupId) { + this.groupId = groupId; + } + @Override public int hashCode() { return super.hashCode(); @@ -224,6 +249,7 @@ public class User implements Serializable { + city + ", country=" + country + ", headimgurl=" + headimgurl + ", privilege=" + privilege + ", isSubscribe=" + isSubscribe + ", subscribeTime=" + subscribeTime + ", language=" + language - + ", unionId=" + unionId + "]"; + + ", unionId=" + unionId + ", remark=" + remark + ", groupId=" + + groupId + "]"; } }