forked from binarywang/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pengg
committed
Jun 21, 2021
1 parent
05520cb
commit dc3f855
Showing
8 changed files
with
466 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); | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...ava-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.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,60 @@ | ||
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; | ||
|
||
/** | ||
* 转接在职成员的客户给其他成员,返回对象 | ||
* | ||
* @author pg | ||
* @date 2021年6月21日 | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpUserTransferCustomerResp extends WxCpBaseResp { | ||
private static final long serialVersionUID = -8030598756503590089L; | ||
/** | ||
* 客户转移结果列表 | ||
*/ | ||
private List<TransferCustomer> customer; | ||
|
||
public static WxCpUserTransferCustomerResp fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferCustomerResp.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
/** | ||
* 转接客户结果实体 | ||
*/ | ||
@Getter | ||
@Setter | ||
public static class TransferCustomer implements Serializable { | ||
private static final long serialVersionUID = 8720554208727083338L; | ||
/** | ||
* 客户的external_userid | ||
*/ | ||
@SerializedName("external_userid") | ||
private String externalUserid; | ||
/** | ||
* 对此客户进行分配的结果, 0表示成功发起接替,待24小时后自动接替,并不代表最终接替成功 | ||
*/ | ||
private Integer errcode; | ||
|
||
public static WxCpUserTransferCustomerResp.TransferCustomer fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferCustomerResp.TransferCustomer.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} | ||
} |
Oops, something went wrong.