mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 01:46:20 +08:00
feat(work): 随官方更新提交审批申请接口模型
This commit is contained in:
parent
402b58f86b
commit
dd9547731c
@ -340,6 +340,36 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
public class DateRange : DateRangeControlValue
|
public class DateRange : DateRangeControlValue
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class Slice
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class DayItem
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置当天零点时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("daytime")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("daytime")]
|
||||||
|
public long DayTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置时长(单位:秒)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("duration")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("duration")]
|
||||||
|
public int Duration { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置每一天的分片时长列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("day_items")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("day_items")]
|
||||||
|
public IList<Types.DayItem> DayItems { get; set; } = new List<Types.DayItem>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -355,6 +385,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("date_range")]
|
[Newtonsoft.Json.JsonProperty("date_range")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("date_range")]
|
[System.Text.Json.Serialization.JsonPropertyName("date_range")]
|
||||||
public Types.DateRange DateRange { get; set; } = new Types.DateRange();
|
public Types.DateRange DateRange { get; set; } = new Types.DateRange();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置时长按天分片信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("slice_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("slice_info")]
|
||||||
|
public Types.Slice? Slice { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class VacationControlValue
|
public class VacationControlValue
|
||||||
|
@ -135,7 +135,19 @@
|
|||||||
"new_end": 1570593600,
|
"new_end": 1570593600,
|
||||||
"new_duration": 86400
|
"new_duration": 86400
|
||||||
},
|
},
|
||||||
"type": 4
|
"type": 4,
|
||||||
|
"slice_info": {
|
||||||
|
"day_items": [
|
||||||
|
{
|
||||||
|
"daytime": 1713801600,
|
||||||
|
"duration": 84400
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"daytime": 1713888000,
|
||||||
|
"duration": 86400
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"location": {
|
"location": {
|
||||||
"latitude": "30.547239",
|
"latitude": "30.547239",
|
||||||
|
Loading…
Reference in New Issue
Block a user