Skip to content

Commit

Permalink
🎨 #2387 【企业微信】客户朋友圈接口字段调整
Browse files Browse the repository at this point in the history
  • Loading branch information
loadingspace committed Nov 17, 2021
1 parent a5cd1a6 commit 8b4c105
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
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);
}

}

0 comments on commit 8b4c105

Please sign in to comment.