Visitar URL original
Fix moment miss field by loadingspace · Pull Request #2387 · binarywang/WxJava · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class WxCpGetMomentComments extends WxCpBaseResp {
public static class CommentLikeItem {
@SerializedName("external_userid")
private String externalUserId;
@SerializedName("userid")
private String userid;
@SerializedName("create_time")
private Long createTime;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.chanjar.weixin.cp.bean.external.moment;

import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
import me.chanjar.weixin.cp.bean.external.msg.Image;
import me.chanjar.weixin.cp.bean.external.msg.Link;
Expand All @@ -21,7 +22,7 @@ public class MomentInfo {
@SerializedName("visible_type")
private Integer visibleType;
private Text text;
private Image image;
private List<Image> image;
private Video video;
private Link link;
private Location location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,12 @@ public void testGetProductListAlbum() throws WxErrorException {
}
}

@Test
public void testGetMomentList() throws WxErrorException {
WxCpGetMomentList result = this.wxCpService.getExternalContactService()
.getMomentList(1636732800L, 1636991999L, null, null, null, null);
System.out.println(result);
assertNotNull(result);
}

}