mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-03 04:13:37 +08:00
🎨 #1371 企业微信通讯录成员管理读取成员接口增加thumb_avatar参数
This commit is contained in:
parent
c1b87971fa
commit
ea06197107
@ -27,6 +27,7 @@ public class WxCpUser implements Serializable {
|
||||
private Gender gender;
|
||||
private String email;
|
||||
private String avatar;
|
||||
private String thumbAvatar;
|
||||
/**
|
||||
* 地址。长度最大128个字符
|
||||
*/
|
||||
|
@ -66,6 +66,7 @@ public class WxCpUserGsonAdapter implements JsonDeserializer<WxCpUser>, JsonSeri
|
||||
user.setGender(Gender.fromCode(GsonHelper.getString(o, "gender")));
|
||||
user.setEmail(GsonHelper.getString(o, "email"));
|
||||
user.setAvatar(GsonHelper.getString(o, "avatar"));
|
||||
user.setThumbAvatar(GsonHelper.getString(o, "thumb_avatar"));
|
||||
user.setAddress(GsonHelper.getString(o, "address"));
|
||||
user.setAvatarMediaId(GsonHelper.getString(o, "avatar_mediaid"));
|
||||
user.setStatus(GsonHelper.getInteger(o, "status"));
|
||||
@ -187,6 +188,9 @@ public class WxCpUserGsonAdapter implements JsonDeserializer<WxCpUser>, JsonSeri
|
||||
if (user.getAvatar() != null) {
|
||||
o.addProperty("avatar", user.getAvatar());
|
||||
}
|
||||
if (user.getThumbAvatar() != null) {
|
||||
o.addProperty("thumb_avatar", user.getThumbAvatar());
|
||||
}
|
||||
if (user.getAddress() != null) {
|
||||
o.addProperty("address", user.getAddress());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user