1
0
mirror of synced 2026-02-13 07:37:48 +08:00

🎨 #3567 【企业微信】获取企业所有打卡规则接口调整

This commit is contained in:
Copilot
2025-07-30 23:10:30 +08:00
committed by GitHub
parent 14f8c8ebc2
commit a881de59a5
2 changed files with 137 additions and 0 deletions

View File

@@ -53,6 +53,12 @@ public class WxCpCropCheckinOption extends WxCpCheckinGroupBase implements Seria
@SerializedName("ot_info")
private OtInfo otInfo;
/**
* 加班信息V2新版API返回的加班信息结构
*/
@SerializedName("ot_info_v2")
private OtInfoV2 otInfoV2;
/**
* 每月最多补卡次数,默认-1表示不限制
*/
@@ -418,4 +424,94 @@ public class WxCpCropCheckinOption extends WxCpCheckinGroupBase implements Seria
private Integer otNonworkingDaySpanDayTime;
}
/**
* 加班信息V2新版API返回的加班信息结构
*/
@Data
public static class OtInfoV2 implements Serializable {
private static final long serialVersionUID = 1610150484871066200L;
/**
* 工作日加班配置
*/
@SerializedName("workdayconf")
private WorkdayConf workdayConf;
/**
* 非工作日加班配置
*/
@SerializedName("restdayconf")
private RestdayConf restdayConf;
/**
* 节假日加班配置
*/
@SerializedName("holidayconf")
private HolidayConf holidayConf;
/**
* 工作日加班配置
*/
@Data
public static class WorkdayConf implements Serializable {
private static final long serialVersionUID = 1610150484871066201L;
/**
* 是否允许工作日加班true为允许false为不允许
*/
@SerializedName("allow_ot")
private Boolean allowOt;
/**
* 加班类型
* 0以加班申请核算打卡记录根据打卡记录和加班申请核算,
* 1以打卡时间为准根据打卡时间计算
* 2: 以加班申请审批为准(只根据加班申请计算)
*/
@SerializedName("type")
private Integer type;
}
/**
* 非工作日加班配置
*/
@Data
public static class RestdayConf implements Serializable {
private static final long serialVersionUID = 1610150484871066202L;
/**
* 是否允许非工作日加班true为允许false为不允许
*/
@SerializedName("allow_ot")
private Boolean allowOt;
/**
* 加班类型
*/
@SerializedName("type")
private Integer type;
}
/**
* 节假日加班配置
*/
@Data
public static class HolidayConf implements Serializable {
private static final long serialVersionUID = 1610150484871066203L;
/**
* 是否允许节假日加班true为允许false为不允许
*/
@SerializedName("allow_ot")
private Boolean allowOt;
/**
* 加班类型
*/
@SerializedName("type")
private Integer type;
}
}
}