1
0
mirror of synced 2025-12-23 10:39:27 +08:00

🆕 #3488【企业微信】增加获取企业已配置的「联系我」列表的接口

This commit is contained in:
imyzt
2025-02-07 19:58:53 +08:00
committed by GitHub
parent 3e48dc7f83
commit 783c89523d
5 changed files with 114 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ import static org.testng.Assert.assertNotNull;
import com.google.common.collect.Lists;
import com.google.inject.Inject;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
@@ -90,6 +93,20 @@ public class WxCpExternalContactServiceImplTest {
assertNotNull(contactWayInfo);
}
/**
* Test list contact way.
*
* @throws WxErrorException the wx error exception
*/
@Test
public void testListContactWay() throws WxErrorException {
long startTime = LocalDateTime.now().minusDays(1).toEpochSecond(ZoneOffset.of("+8"));
long endTime = LocalDateTime.now().toEpochSecond(ZoneOffset.of("+8"));
WxCpContactWayList wxCpContactWayList = this.wxCpService.getExternalContactService().listContactWay(startTime, endTime, null, 100L);
System.out.println(wxCpContactWayList.toJson());
assertNotNull(wxCpContactWayList);
}
/**
* Test update contact way.
*