feat(work): 随官方更新获取审批申请详情接口模型

This commit is contained in:
Fu Diwei
2024-03-13 16:11:00 +08:00
parent 88637df70e
commit 8c0ad7d09e
2 changed files with 53 additions and 3 deletions

View File

@@ -247,6 +247,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public class DateControlValue
{
public static class Types
{
public class Timezone
{
/// <summary>
/// 获取或设置时区偏移量。
/// </summary>
[Newtonsoft.Json.JsonProperty("zone_offset")]
[System.Text.Json.Serialization.JsonPropertyName("zone_offset")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int Offset { get; set; }
/// <summary>
/// 获取或设置时区描述。
/// </summary>
[Newtonsoft.Json.JsonProperty("zone_desc")]
[System.Text.Json.Serialization.JsonPropertyName("zone_desc")]
public string Description { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置时间展示类型。
/// </summary>
@@ -261,6 +282,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("s_timestamp")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberConverter))]
public long? Timestamp { get; set; }
/// <summary>
/// 获取或设置时区信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("timezone_info")]
[System.Text.Json.Serialization.JsonPropertyName("timezone_info")]
public Types.Timezone? Timezone { get; set; }
}
public class SelectorControlValue
@@ -553,6 +581,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public class DateRangeControlValue
{
public static class Types
{
public class Timezone : DateControlValue.Types.Timezone
{
}
}
/// <summary>
/// 获取或设置时间展示类型。
/// </summary>
@@ -580,6 +615,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[Newtonsoft.Json.JsonProperty("new_duration")]
[System.Text.Json.Serialization.JsonPropertyName("new_duration")]
public int Duration { get; set; }
/// <summary>
/// 获取或设置时区信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("timezone_info")]
[System.Text.Json.Serialization.JsonPropertyName("timezone_info")]
public Types.Timezone? Timezone { get; set; }
}
public class CheckinControlValue

View File

@@ -1,4 +1,4 @@
{
{
"errcode": 0,
"errmsg": "ok",
"info": {
@@ -59,7 +59,11 @@
"new_money": "700",
"date": {
"type": "day",
"s_timestamp": "1569859200"
"s_timestamp": "1569859200",
"timezone_info": {
"zone_offset": "-9",
"zone_desc": "UTC+9"
}
},
"selector": {
"type": "multi",
@@ -187,7 +191,11 @@
"type": "halfday",
"new_begin": 1570550400,
"new_end": 1570593600,
"new_duration": 86400
"new_duration": 86400,
"timezone_info": {
"zone_offset": "-9",
"zone_desc": "UTC+9"
}
},
"location": {
"latitude": "30.547239",