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.
🆕 binarywang#2365 【企业微信】新增获取企业群发记录及结果的接口
- Loading branch information
1 parent
7f5bcc5
commit dea0f85
Showing
7 changed files
with
306 additions
and
4 deletions.
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
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
60 changes: 60 additions & 0 deletions
60
...a-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.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.contact; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.bean.external.msg.Attachment; | ||
import me.chanjar.weixin.cp.bean.external.msg.Text; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* <pre> | ||
* 获取企业群发成员执行结果 | ||
* 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/93338 | ||
* </pre> | ||
* | ||
* @author <a href="https://github.com/wslongchen">Mr.Pan</a> | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpGroupMsgListResult extends WxCpBaseResp implements Serializable { | ||
|
||
private static final long serialVersionUID = 3464981991558716620L; | ||
|
||
@SerializedName("group_msg_list") | ||
private List<ExternalContactGroupMsgInfo> groupMsgList; | ||
|
||
@SerializedName("next_cursor") | ||
private String nextCursor; | ||
|
||
@Getter | ||
@Setter | ||
public static class ExternalContactGroupMsgInfo implements Serializable { | ||
|
||
private static final long serialVersionUID = 3108435608725559381L; | ||
@SerializedName("msgid") | ||
private String msgId; | ||
|
||
private String creator; | ||
|
||
private Text text; | ||
|
||
private List<Attachment> attachments; | ||
|
||
@SerializedName("create_type") | ||
private Integer createType; | ||
|
||
@SerializedName("create_time") | ||
private Long createTime; | ||
|
||
} | ||
|
||
public static WxCpGroupMsgListResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgListResult.class); | ||
} | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
...a-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.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,56 @@ | ||
package me.chanjar.weixin.cp.bean.external.contact; | ||
|
||
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; | ||
|
||
/** | ||
* <pre> | ||
* 获取企业群发成员执行结果 | ||
* 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/93338 | ||
* </pre> | ||
* | ||
* @author <a href="https://github.com/wslongchen">Mr.Pan</a> | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpGroupMsgSendResult extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -5166048319463473186L; | ||
|
||
@SerializedName("send_list") | ||
private List<ExternalContactGroupMsgSendInfo> sendList; | ||
|
||
@SerializedName("next_cursor") | ||
private String nextCursor; | ||
|
||
@Getter | ||
@Setter | ||
public static class ExternalContactGroupMsgSendInfo implements Serializable { | ||
private static final long serialVersionUID = 1500416806087532531L; | ||
|
||
@SerializedName("external_userid") | ||
private String externalUserId; | ||
|
||
@SerializedName("chat_id") | ||
private String chatId; | ||
|
||
@SerializedName("userid") | ||
private String userId; | ||
|
||
private Integer status; | ||
|
||
@SerializedName("send_time") | ||
private Long sendTime; | ||
|
||
} | ||
|
||
public static WxCpGroupMsgSendResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgSendResult.class); | ||
} | ||
|
||
} |
50 changes: 50 additions & 0 deletions
50
...a-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.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,50 @@ | ||
package me.chanjar.weixin.cp.bean.external.contact; | ||
|
||
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; | ||
|
||
/** | ||
* <pre> | ||
* 获取群发成员发送任务列表 | ||
* 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/93338 | ||
* </pre> | ||
* | ||
* @author <a href="https://github.com/wslongchen">Mr.Pan</a> | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpGroupMsgTaskResult extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -5166048319463473186L; | ||
|
||
@SerializedName("task_list") | ||
private List<ExternalContactGroupMsgTaskInfo> taskList; | ||
|
||
@SerializedName("next_cursor") | ||
private String nextCursor; | ||
|
||
@Getter | ||
@Setter | ||
public static class ExternalContactGroupMsgTaskInfo implements Serializable { | ||
private static final long serialVersionUID = 1500416806087532531L; | ||
|
||
@SerializedName("userid") | ||
private String userId; | ||
|
||
private Integer status; | ||
|
||
@SerializedName("send_time") | ||
private Long sendTime; | ||
|
||
} | ||
|
||
public static WxCpGroupMsgTaskResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgTaskResult.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