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

:new:【企业微信】新增修改成员假期余额的接口

This commit is contained in:
Wong
2022-04-14 08:51:03 +00:00
committed by binarywang
parent 6f776bdda0
commit 7229bb4e40
4 changed files with 65 additions and 4 deletions

View File

@@ -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(, , , , );
}
}