mirror of
https://github.com/silenceper/wechat.git
synced 2026-03-01 00:35:26 +08:00
feat: 企业微信-打卡规则支持配置大小周规则 (#872)
This commit is contained in:
@@ -158,6 +158,7 @@ type OptionGroupRuleCheckinDate struct {
|
|||||||
MaxAllowArriveEarly int64 `json:"max_allow_arrive_early"`
|
MaxAllowArriveEarly int64 `json:"max_allow_arrive_early"`
|
||||||
MaxAllowArriveLate int64 `json:"max_allow_arrive_late"`
|
MaxAllowArriveLate int64 `json:"max_allow_arrive_late"`
|
||||||
LateRule OptionGroupLateRule `json:"late_rule"`
|
LateRule OptionGroupLateRule `json:"late_rule"`
|
||||||
|
Biweekly OptionGroupBiweekly `json:"biweekly,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// OptionGroupRuleCheckinTime 工作日上下班打卡时间信息
|
// OptionGroupRuleCheckinTime 工作日上下班打卡时间信息
|
||||||
@@ -176,6 +177,13 @@ type OptionGroupRuleCheckinTime struct {
|
|||||||
LatestOffWorkSec int64 `json:"latest_off_work_sec"`
|
LatestOffWorkSec int64 `json:"latest_off_work_sec"`
|
||||||
NoNeedCheckOn bool `json:"no_need_checkon"`
|
NoNeedCheckOn bool `json:"no_need_checkon"`
|
||||||
NoNeedCheckOff bool `json:"no_need_checkoff"`
|
NoNeedCheckOff bool `json:"no_need_checkoff"`
|
||||||
|
RestTimes []OptionGroupRuleRestTimes `json:"rest_times,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// OptionGroupRuleRestTimes 多组休息时间
|
||||||
|
type OptionGroupRuleRestTimes struct {
|
||||||
|
RestBeginTime int64 `json:"rest_begin_time,omitempty"`
|
||||||
|
RestEndTime int64 `json:"rest_end_time,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// OptionGroupLateRule 晚走晚到时间规则信息
|
// OptionGroupLateRule 晚走晚到时间规则信息
|
||||||
@@ -192,6 +200,13 @@ type OptionGroupTimeRule struct {
|
|||||||
OnWorkFlexTime int64 `json:"onwork_flex_time"`
|
OnWorkFlexTime int64 `json:"onwork_flex_time"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OptionGroupBiweekly 大小周规则
|
||||||
|
type OptionGroupBiweekly struct {
|
||||||
|
EnableWeekdayRecurrence bool `json:"enable_weekday_recurrence"`
|
||||||
|
OddWorkdays []int64 `json:"odd_workdays"`
|
||||||
|
EvenWorkdays []int64 `json:"even_workdays"`
|
||||||
|
}
|
||||||
|
|
||||||
// OptionGroupSpeWorkdays 特殊工作日
|
// OptionGroupSpeWorkdays 特殊工作日
|
||||||
type OptionGroupSpeWorkdays struct {
|
type OptionGroupSpeWorkdays struct {
|
||||||
Timestamp int64 `json:"timestamp"`
|
Timestamp int64 `json:"timestamp"`
|
||||||
|
|||||||
Reference in New Issue
Block a user