mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 00:46:54 +08:00 
			
		
		
		
	🎨 #2387 【企业微信】客户朋友圈接口字段调整
This commit is contained in:
		| @@ -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; | ||||
|   } | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
| @@ -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); | ||||
|   } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lo_ading
					Lo_ading