Skip to content

Commit

Permalink
🆕 Wechat-Group#2615 【企业微信】获取企业永久授权码、获取企业授权信息接口补充版本信息返回值
Browse files Browse the repository at this point in the history
  • Loading branch information
MRLEILOVE committed Apr 24, 2022
1 parent f62ad6c commit 5758cdc
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,17 @@ public static class Agent implements Serializable {
@SerializedName("expired_time")
private Long expiredTime;

/**
* 是否虚拟版本
*/
@SerializedName("is_virtual_version")
private Boolean isVirtualVersion;

/**
* 是否由互联企业分享安装。详见 <a href='https://developer.work.weixin.qq.com/document/path/93360#24909'>企业互联</a>
*/
@SerializedName("is_shared_from_other_corp")
private Boolean isSharedFromOtherCorp;
}

/**
Expand Down Expand Up @@ -290,6 +301,7 @@ public static WxCpTpAuthInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpAuthInfo.class);
}

@Override
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,19 @@ public static class Agent implements Serializable {
*/
@SerializedName("expired_time")
private Long expiredTime;

/**
* 是否虚拟版本
*/
@SerializedName("is_virtual_version")
private Boolean isVirtualVersion;

/**
* 是否由互联企业分享安装。详见 <a href='https://developer.work.weixin.qq.com/document/path/93360#24909'>企业互联</a>
*/
@SerializedName("is_shared_from_other_corp")
private Boolean isSharedFromOtherCorp;

}

/**
Expand Down Expand Up @@ -304,6 +317,7 @@ public static WxCpTpPermanentCodeInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpPermanentCodeInfo.class);
}

@Override
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ public void testGetPermanentCodeInfo() throws WxErrorException {
" \"edition_name\":\"协同版\",\n" +
" \"app_status\":3,\n" +
" \"user_limit\":200,\n" +
" \"expired_time\":1541990791\n" +
" \"expired_time\":1541990791,\n" +
" \"is_virtual_version\":false,\n" +
" \"is_shared_from_other_corp\":true\n" +
" }\n" +
" ]\n" +
" }\n" +
Expand Down Expand Up @@ -295,15 +297,19 @@ public void testGetAuthInfo() throws WxErrorException {
" \"edition_name\":\"协同版\",\n" +
" \"app_status\":3,\n" +
" \"user_limit\":200,\n" +
" \"expired_time\":1541990791\n" +
" \"expired_time\":1541990791,\n" +
" \"is_virtual_version\":false,\n" +
" \"is_shared_from_other_corp\":true\n" +
" },\n" +
" {\n" +
" \"agentid\":1,\n" +
" \"edition_id\":\"RLS65535\",\n" +
" \"edition_name\":\"协同版\",\n" +
" \"app_status\":3,\n" +
" \"user_limit\":200,\n" +
" \"expired_time\":1541990791\n" +
" \"expired_time\":1541990791,\n" +
" \"is_virtual_version\":false,\n" +
" \"is_shared_from_other_corp\":true\n" +
" }\n" +
" ]\n" +
" }\n" +
Expand Down

0 comments on commit 5758cdc

Please sign in to comment.