🎨 #2428 【企业微信】用户管理接口添加官方新引入的直属领导字段

This commit is contained in:
sunzsh 2021-12-08 09:13:34 +08:00 committed by GitHub
parent e2f370eedc
commit ce8bf302fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public class WxCpUser implements Serializable {
private String externalCorpName;
private WechatChannels wechatChannels;
private String[] directLeader;

View File

@ -89,6 +89,7 @@ public class WxCpUserGsonAdapter implements JsonDeserializer<WxCpUser>, JsonSeri
user.setToInvite(GsonHelper.getBoolean(o, "to_invite"));
user.setOpenUserId(GsonHelper.getString(o, "open_userid"));
user.setMainDepartment(GsonHelper.getString(o, "main_department"));
user.setDirectLeader(GsonHelper.getStringArray(o, "direct_leader"));
if (GsonHelper.isNotNull(o.get(EXTRA_ATTR))) {
this.buildExtraAttrs(o, user);