-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
新增企微获取企业群发记录及结果 #2365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
新增企微获取企业群发记录及结果 #2365
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.