Skip to content

Commit

Permalink
🎨 #1371 企业微信通讯录成员管理读取成员接口增加thumb_avatar参数
Browse files Browse the repository at this point in the history
  • Loading branch information
forfuns authored and binarywang committed Jan 9, 2020
1 parent c1b8797 commit ea06197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class WxCpUser implements Serializable {
private Gender gender;
private String email;
private String avatar;
private String thumbAvatar;
/**
* 地址。长度最大128个字符
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public WxCpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC
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"));
Expand Down Expand Up @@ -187,6 +188,9 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon
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());
}
Expand Down

0 comments on commit ea06197

Please sign in to comment.