🆕 #2219 【企业微信】 新增为打卡人员排班接口

This commit is contained in:
longliveh
2021-07-27 20:53:19 +08:00
committed by GitHub
parent 5f23a6f101
commit 8511f8f826
5 changed files with 87 additions and 0 deletions

View File

@@ -180,4 +180,11 @@ public interface WxCpOaService {
List<WxCpCheckinSchedule> getCheckinScheduleList(Date startTime, Date endTime, List<String> userIdList) throws WxErrorException;
/**
* 为打卡人员排班
*
* @param wxCpSetCheckinSchedule the wx cp set checkin schedule
* @throws WxErrorException the wx error exception
*/
void setCheckinScheduleList(WxCpSetCheckinSchedule wxCpSetCheckinSchedule) throws WxErrorException;
}

View File

@@ -336,4 +336,10 @@ public class WxCpOaServiceImpl implements WxCpOaService {
}.getType()
);
}
@Override
public void setCheckinScheduleList(WxCpSetCheckinSchedule wxCpSetCheckinSchedule) throws WxErrorException {
final String url = this.mainService.getWxCpConfigStorage().getApiUrl(SET_CHECKIN_SCHEDULE_DATA);
this.mainService.post(url, WxCpGsonBuilder.create().toJson(wxCpSetCheckinSchedule));
}
}