-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #2150 【企业微信】补充完善部分客户联系接口,以及服务商模式外部联系人openid转换接口
- Loading branch information
1 parent
566e5f3
commit 3963c6d
Showing
8 changed files
with
486 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
51 changes: 51 additions & 0 deletions
51
...c/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.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,51 @@ | ||
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.util.List; | ||
|
||
/** | ||
* 分配离职成员的客户群结果 | ||
* @author pg | ||
* @date 2021年6月21日 | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpUserExternalGroupChatTransferResp extends WxCpBaseResp { | ||
private static final long serialVersionUID = -943124579487821819L; | ||
/** | ||
* 没有成功继承的群列表 | ||
*/ | ||
@SerializedName("failed_chat_list") | ||
private List<GroupChatFailedTransfer> failedChatList; | ||
|
||
public static WxCpUserExternalGroupChatTransferResp fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatTransferResp.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
@Getter | ||
@Setter | ||
public static class GroupChatFailedTransfer extends WxCpBaseResp { | ||
private static final long serialVersionUID = -5836775099634587239L; | ||
/** | ||
* 没能成功继承的群ID | ||
*/ | ||
private String chatId; | ||
|
||
public static WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.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,49 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.common.annotation.Required; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 转接在职成员的客户给其他成员,请求对象 | ||
* | ||
* @author pg | ||
* @date 2021年6月21日 | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpUserTransferCustomerReq implements Serializable { | ||
private static final long serialVersionUID = -309819538677411801L; | ||
/** | ||
* 原跟进成员的userid | ||
*/ | ||
@SerializedName("handover_userid") | ||
@Required | ||
private String handOverUserid; | ||
/** | ||
* 接替成员的userid | ||
*/ | ||
@SerializedName("takeover_userid") | ||
@Required | ||
private String takeOverUserid; | ||
/** | ||
* 客户的external_userid列表,每次最多分配100个客户 | ||
*/ | ||
@SerializedName("external_userid") | ||
@Required | ||
private List<String> externalUserid; | ||
/** | ||
* 转移成功后发给客户的消息,最多200个字符,不填则使用默认文案 | ||
*/ | ||
@SerializedName("transfer_success_msg") | ||
private String transferMsg; | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
Oops, something went wrong.