Skip to content

Commit 85b5f05

Browse files
committed
feat(work): 随官方更新打卡规则相关接口模型
1 parent 3a27a7b commit 85b5f05

2 files changed

Lines changed: 107 additions & 0 deletions

File tree

src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinCheckin/Option/CgibinCheckinAddCheckinOptionRequest.cs

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,30 @@ public class TimeRule
104104
[System.Text.Json.Serialization.JsonPropertyName("onwork_flex_time")]
105105
public int? OnWorkFlexTime { get; set; }
106106
}
107+
108+
public class BiWeekly
109+
{
110+
/// <summary>
111+
/// 获取或设置是否开启大小周。
112+
/// </summary>
113+
[Newtonsoft.Json.JsonProperty("enable_weekday_recurrence")]
114+
[System.Text.Json.Serialization.JsonPropertyName("enable_weekday_recurrence")]
115+
public bool? EnableWeekdayRecurrence { get; set; }
116+
117+
/// <summary>
118+
/// 获取或设置奇数周次序号列表。
119+
/// </summary>
120+
[Newtonsoft.Json.JsonProperty("odd_workdays")]
121+
[System.Text.Json.Serialization.JsonPropertyName("odd_workdays")]
122+
public IList<int>? OddWorkdayList { get; set; }
123+
124+
/// <summary>
125+
/// 获取或设置偶数周次序号列表。
126+
/// </summary>
127+
[Newtonsoft.Json.JsonProperty("even_workdays")]
128+
[System.Text.Json.Serialization.JsonPropertyName("even_workdays")]
129+
public IList<int>? EvenWorkdayList { get; set; }
130+
}
107131
}
108132

109133
/// <summary>
@@ -161,6 +185,13 @@ public class TimeRule
161185
[Newtonsoft.Json.JsonProperty("late_rule")]
162186
[System.Text.Json.Serialization.JsonPropertyName("late_rule")]
163187
public Types.LateRule? LateRule { get; set; }
188+
189+
/// <summary>
190+
/// 获取或设置大小周信息。
191+
/// </summary>
192+
[Newtonsoft.Json.JsonProperty("biweekly")]
193+
[System.Text.Json.Serialization.JsonPropertyName("biweekly")]
194+
public Types.BiWeekly? BiWeekly { get; set; }
164195
}
165196

166197
public class CheckinTime
@@ -716,6 +747,44 @@ public class Vacation
716747
[System.Text.Json.Serialization.JsonPropertyName("vacation")]
717748
public Types.Vacation? Vacation { get; set; }
718749
}
750+
751+
public class TimeUnitConfig
752+
{
753+
/// <summary>
754+
/// 获取或设置加班单位类型。
755+
/// </summary>
756+
[Newtonsoft.Json.JsonProperty("ot_time_unit")]
757+
[System.Text.Json.Serialization.JsonPropertyName("ot_time_unit")]
758+
public int? OvertimeTimeUnit { get; set; }
759+
760+
/// <summary>
761+
/// 获取或设置每天时长(单位:秒)。
762+
/// </summary>
763+
[Newtonsoft.Json.JsonProperty("perday_duration_secs")]
764+
[System.Text.Json.Serialization.JsonPropertyName("perday_duration_secs")]
765+
public int? DurationSecondsPerDay { get; set; }
766+
767+
/// <summary>
768+
/// 获取或设置舍入方式。
769+
/// </summary>
770+
[Newtonsoft.Json.JsonProperty("rounding_method")]
771+
[System.Text.Json.Serialization.JsonPropertyName("rounding_method")]
772+
public int? RoundingMethod { get; set; }
773+
774+
/// <summary>
775+
/// 获取或设置舍入保留小数位数。
776+
/// </summary>
777+
[Newtonsoft.Json.JsonProperty("rounding_precision")]
778+
[System.Text.Json.Serialization.JsonPropertyName("rounding_precision")]
779+
public int? RoundingPrecision { get; set; }
780+
781+
/// <summary>
782+
/// 获取或设置舍入时取整步长。
783+
/// </summary>
784+
[Newtonsoft.Json.JsonProperty("step_size")]
785+
[System.Text.Json.Serialization.JsonPropertyName("step_size")]
786+
public int? StepSize { get; set; }
787+
}
719788
}
720789

721790
/// <summary>
@@ -738,6 +807,13 @@ public class Vacation
738807
[Newtonsoft.Json.JsonProperty("holidayconf")]
739808
[System.Text.Json.Serialization.JsonPropertyName("holidayconf")]
740809
public Types.Configuration? HolidayConfiguration { get; set; }
810+
811+
/// <summary>
812+
/// 获取或设置加班单位配置信息。
813+
/// </summary>
814+
[Newtonsoft.Json.JsonProperty("time_unit_config")]
815+
[System.Text.Json.Serialization.JsonPropertyName("time_unit_config")]
816+
public Types.TimeUnitConfig? TimeUnitConfig { get; set; }
741817
}
742818

743819
public class RecheckinReminder

src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinCheckin/Option/CgibinCheckinGetCheckinOptionResponse.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,30 @@ public class TimeRule
317317
[System.Text.Json.Serialization.JsonPropertyName("onwork_flex_time")]
318318
public int OnWorkFlexTime { get; set; }
319319
}
320+
321+
public class BiWeekly
322+
{
323+
/// <summary>
324+
/// 获取或设置是否开启大小周。
325+
/// </summary>
326+
[Newtonsoft.Json.JsonProperty("enable_weekday_recurrence")]
327+
[System.Text.Json.Serialization.JsonPropertyName("enable_weekday_recurrence")]
328+
public bool? EnableWeekdayRecurrence { get; set; }
329+
330+
/// <summary>
331+
/// 获取或设置奇数周次序号列表。
332+
/// </summary>
333+
[Newtonsoft.Json.JsonProperty("odd_workdays")]
334+
[System.Text.Json.Serialization.JsonPropertyName("odd_workdays")]
335+
public int[]? OddWorkdayList { get; set; }
336+
337+
/// <summary>
338+
/// 获取或设置偶数周次序号列表。
339+
/// </summary>
340+
[Newtonsoft.Json.JsonProperty("even_workdays")]
341+
[System.Text.Json.Serialization.JsonPropertyName("even_workdays")]
342+
public int[]? EvenWorkdayList { get; set; }
343+
}
320344
}
321345

322346
/// <summary>
@@ -402,6 +426,13 @@ public class TimeRule
402426
[Newtonsoft.Json.JsonProperty("late_rule")]
403427
[System.Text.Json.Serialization.JsonPropertyName("late_rule")]
404428
public Types.LateRule? LateRule { get; set; }
429+
430+
/// <summary>
431+
/// 获取或设置大小周信息。
432+
/// </summary>
433+
[Newtonsoft.Json.JsonProperty("biweekly")]
434+
[System.Text.Json.Serialization.JsonPropertyName("biweekly")]
435+
public Types.BiWeekly? BiWeekly { get; set; }
405436
}
406437
}
407438

0 commit comments

Comments
 (0)