🎨 #2387 【企业微信】客户朋友圈接口字段调整

This commit is contained in:
Lo_ading 2021-11-17 16:54:06 +08:00 committed by GitHub
parent a5cd1a6cd5
commit 8b4c105029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
@ -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;

View File

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