mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #2219 【企业微信】 新增为打卡人员排班接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user