-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #2397【企业微信】帐号ID安全性全面升级相关接口改造以及增加代开发应用external_userid转换的接口
- Loading branch information
1 parent
6cc0b2d
commit cffd173
Showing
5 changed files
with
239 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 企业客户微信unionid的升级 - 企业客户external_userid列表 | ||
* | ||
* @author Mr.Pan | ||
* @date 2021/11/18 | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpExternalUserIdList extends WxCpBaseResp { | ||
|
||
@SerializedName("external_userid_info") | ||
private List<ExternalUserIdInfo> externalUserIdInfo; | ||
|
||
@Getter | ||
@Setter | ||
public static class ExternalUserIdInfo implements Serializable { | ||
private static final long serialVersionUID = 8846290993790709261L; | ||
|
||
/** | ||
* 所属企业id | ||
*/ | ||
@SerializedName("corpid") | ||
private String corpId; | ||
|
||
/** | ||
* 外部联系人id | ||
*/ | ||
@SerializedName("external_userid") | ||
private String externalUserId; | ||
|
||
/** | ||
* 新外部联系人id | ||
*/ | ||
@SerializedName("new_external_userid") | ||
private String newExternalUserId; | ||
|
||
} | ||
|
||
public static WxCpExternalUserIdList fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpExternalUserIdList.class); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...n-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 企业客户微信unionid的升级 - 企业客户external_userid列表 | ||
* | ||
* @author Mr.Pan | ||
* @date 2021/11/18 | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpNewExternalUserIdList extends WxCpBaseResp { | ||
|
||
@SerializedName("items") | ||
private List<NewExternalUserIdInfo> items; | ||
|
||
@Getter | ||
@Setter | ||
public static class NewExternalUserIdInfo implements Serializable { | ||
private static final long serialVersionUID = 8846290993790709261L; | ||
|
||
/** | ||
* 外部联系人id | ||
*/ | ||
@SerializedName("external_userid") | ||
private String externalUserId; | ||
|
||
/** | ||
* 新外部联系人id | ||
*/ | ||
@SerializedName("new_external_userid") | ||
private String newExternalUserId; | ||
|
||
} | ||
|
||
public static WxCpNewExternalUserIdList fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpNewExternalUserIdList.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters