1
0
mirror of synced 2025-12-23 02:18:07 +08:00

:new:【企业微信】增加获取企业假期管理配置的接口

This commit is contained in:
Wong
2022-04-10 13:27:54 +00:00
committed by binarywang
parent 07c3545105
commit 7992ee0d3d
7 changed files with 118 additions and 10 deletions

View File

@@ -1,15 +1,12 @@
package me.chanjar.weixin.cp.api.impl;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import com.google.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.json.GsonParser;
import me.chanjar.weixin.cp.api.ApiTestModule;
import me.chanjar.weixin.cp.api.WxCpService;
import me.chanjar.weixin.cp.bean.oa.*;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
@@ -25,9 +22,9 @@ import static org.assertj.core.api.Assertions.assertThat;
/**
* 企业微信 OA数据接口 测试用例
*
* @author Element
* @author Element & Wang_Wong
*/
@Slf4j
@Guice(modules = ApiTestModule.class)
public class WxCpOaServiceImplTest {
@@ -171,4 +168,15 @@ public class WxCpOaServiceImplTest {
@Test
public void testGetDialRecord() {
}
/**
* https://developer.work.weixin.qq.com/document/path/93375
* @throws WxErrorException
*/
@Test
public void testGetCorpConf() throws WxErrorException{
WxCpCorpConfInfo corpConf = this.wxService.getOaService().getCorpConf();
log.info(corpConf.toJson());
}
}