:new:【企业微信】新增修改成员假期余额的接口
This commit is contained in:
@@ -6,6 +6,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import me.chanjar.weixin.common.error.WxErrorException;
|
||||
import me.chanjar.weixin.cp.api.ApiTestModule;
|
||||
import me.chanjar.weixin.cp.api.WxCpService;
|
||||
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
|
||||
import me.chanjar.weixin.cp.bean.oa.*;
|
||||
import org.apache.commons.lang3.time.DateFormatUtils;
|
||||
import org.testng.annotations.Guice;
|
||||
@@ -176,7 +177,7 @@ public class WxCpOaServiceImplTest {
|
||||
* @throws WxErrorException
|
||||
*/
|
||||
@Test
|
||||
public void testGetCorpConf() throws WxErrorException{
|
||||
public void testGetCorpConf() throws WxErrorException {
|
||||
WxCpCorpConfInfo corpConf = this.wxService.getOaService().getCorpConf();
|
||||
log.info(corpConf.toJson());
|
||||
}
|
||||
@@ -188,7 +189,7 @@ public class WxCpOaServiceImplTest {
|
||||
* @throws WxErrorException
|
||||
*/
|
||||
@Test
|
||||
public void testGetUserVacationQuota() throws WxErrorException{
|
||||
public void testGetUserVacationQuota() throws WxErrorException {
|
||||
WxCpUserVacationQuota vacationQuota = this.wxService.getOaService().getUserVacationQuota("WangKai");
|
||||
log.info(vacationQuota.toJson());
|
||||
|
||||
@@ -198,4 +199,21 @@ public class WxCpOaServiceImplTest {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成员假期余额
|
||||
* https://developer.work.weixin.qq.com/document/path/93377
|
||||
*
|
||||
* @throws WxErrorException
|
||||
*/
|
||||
@Test
|
||||
public void testSetOneUserQuota() throws WxErrorException {
|
||||
|
||||
String text = "{\"errcode\":0,\"errmsg\":\"ok\"}";
|
||||
WxCpBaseResp resp = WxCpBaseResp.fromJson(text);
|
||||
log.info("返回结果为:{}", resp.toJson());
|
||||
|
||||
// WxCpBaseResp wxCpBaseResp = this.wxService.getOaService().setOneUserQuota(, , , , );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user