mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-16 16:50:43 +08:00
feat(work): 随官方更新打卡相关接口模型
This commit is contained in:
parent
ff251444e2
commit
3bb5a0cd06
@ -165,6 +165,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
|
|
||||||
public class CheckinTime
|
public class CheckinTime
|
||||||
{
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class RestTime
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置休息开始时间距当天零点的秒数。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("rest_begin_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("rest_begin_time")]
|
||||||
|
public int BeginTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置休息结束时间距当天零点的秒数。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("rest_end_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("rest_end_time")]
|
||||||
|
public int EndTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置时段 ID。
|
/// 获取或设置时段 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -249,6 +269,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("rest_end_time")]
|
[System.Text.Json.Serialization.JsonPropertyName("rest_end_time")]
|
||||||
public int? RestEndTime { get; set; }
|
public int? RestEndTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置多组休息时间列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("rest_times")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("rest_times")]
|
||||||
|
public IList<Types.RestTime>? RestTimeList { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置是否不需要上班打卡。
|
/// 获取或设置是否不需要上班打卡。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -69,6 +71,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
|
|
||||||
public class CheckinTime
|
public class CheckinTime
|
||||||
{
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class RestTime
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置休息开始时间距当天零点的秒数。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("rest_begin_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("rest_begin_time")]
|
||||||
|
public int BeginTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置休息结束时间距当天零点的秒数。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("rest_end_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("rest_end_time")]
|
||||||
|
public int EndTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置时段 ID。
|
/// 获取或设置时段 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -153,6 +175,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("rest_end_time")]
|
[System.Text.Json.Serialization.JsonPropertyName("rest_end_time")]
|
||||||
public int? RestEndTime { get; set; }
|
public int? RestEndTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置多组休息时间列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("rest_times")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("rest_times")]
|
||||||
|
public Types.RestTime[]? RestTimeList { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置是否不需要上班打卡。
|
/// 获取或设置是否不需要上班打卡。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"errcode": 0,
|
"errcode": 0,
|
||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
"info": [
|
"info": [
|
||||||
@ -97,7 +97,13 @@
|
|||||||
"remind_off_work_sec": 61200,
|
"remind_off_work_sec": 61200,
|
||||||
"rest_begin_time": 43200,
|
"rest_begin_time": 43200,
|
||||||
"rest_end_time": 46800,
|
"rest_end_time": 46800,
|
||||||
"allow_rest": false
|
"allow_rest": false,
|
||||||
|
"rest_times": [
|
||||||
|
{
|
||||||
|
"rest_begin_time": 47400,
|
||||||
|
"rest_end_time": 48000
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"limit_aheadtime": 14400000,
|
"limit_aheadtime": 14400000,
|
||||||
|
Loading…
Reference in New Issue
Block a user