🆕 #3488【企业微信】增加获取企业已配置的「联系我」列表的接口
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user