-
-
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.
- Loading branch information
Showing
22 changed files
with
651 additions
and
6 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
27 changes: 27 additions & 0 deletions
27
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.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,27 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
/** | ||
* 企业发表内容到客户的朋友圈 创建发表任务结果 | ||
* | ||
* @author leiin | ||
* @date 2021-10-29 | ||
*/ | ||
@Data | ||
public class WxCpAddMomentResult extends WxCpBaseResp { | ||
|
||
@SerializedName("jobid") | ||
private String jobId; | ||
|
||
public static WxCpAddMomentResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpAddMomentResult.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.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,36 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.io.Serializable; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import me.chanjar.weixin.cp.bean.external.msg.Attachment; | ||
import me.chanjar.weixin.cp.bean.external.msg.Text; | ||
import me.chanjar.weixin.cp.bean.external.moment.VisibleRange; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
/** | ||
* 企业发表内容到客户的朋友圈 创建发表任务 | ||
* | ||
* @author leiin | ||
* @date 2021-10-29 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class WxCpAddMomentTask implements Serializable { | ||
@SerializedName("visible_range") | ||
private VisibleRange visibleRange; | ||
|
||
private Text text; | ||
|
||
private List<Attachment> attachments; | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.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,40 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.List; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
/** | ||
* 企业发表内容到客户的朋友圈 获取客户朋友圈的互动数据 | ||
* | ||
* @author leiin | ||
* @date 2021-10-29 | ||
*/ | ||
@Data | ||
public class WxCpGetMomentComments extends WxCpBaseResp { | ||
@SerializedName("comment_list") | ||
private List<CommentLikeItem> commentList; | ||
@SerializedName("like_list") | ||
private List<CommentLikeItem> likeList; | ||
|
||
@Getter | ||
@Setter | ||
public static class CommentLikeItem { | ||
@SerializedName("external_userid") | ||
private String externalUserId; | ||
@SerializedName("create_time") | ||
private Long createTime; | ||
} | ||
|
||
public static WxCpGetMomentComments fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentComments.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
Oops, something went wrong.