#1047企业微信邀请成员接口结果中invaliduser字段类型调整
This commit is contained in:
@@ -37,7 +37,7 @@ public class WxCpInviteResult implements Serializable {
|
|||||||
private String errMsg;
|
private String errMsg;
|
||||||
|
|
||||||
@SerializedName("invaliduser")
|
@SerializedName("invaliduser")
|
||||||
private String invalidUsers;
|
private String[] invalidUsers;
|
||||||
|
|
||||||
@SerializedName("invalidparty")
|
@SerializedName("invalidparty")
|
||||||
private String[] invalidParties;
|
private String[] invalidParties;
|
||||||
@@ -45,16 +45,4 @@ public class WxCpInviteResult implements Serializable {
|
|||||||
@SerializedName("invalidtag")
|
@SerializedName("invalidtag")
|
||||||
private String[] invalidTags;
|
private String[] invalidTags;
|
||||||
|
|
||||||
public List<String> getInvalidUserList() {
|
|
||||||
return this.content2List(this.invalidUsers);
|
|
||||||
}
|
|
||||||
|
|
||||||
private List<String> content2List(String content) {
|
|
||||||
if (StringUtils.isBlank(content)) {
|
|
||||||
return Collections.emptyList();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Splitter.on("|").splitToList(content);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user