mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-18 09:44:43 +08:00
feat(work): 随官方更新日程相关接口模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
@@ -138,6 +138,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cal_id")]
|
||||
public string? CalendarId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否设置为全天日程。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_whole_day")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_whole_day")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsWholeDay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日程标题。
|
||||
/// </summary>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/oa/schedule/get 接口的响应。</para>
|
||||
@@ -163,6 +163,15 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long? EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否设置为全天日程。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_whole_day")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_whole_day")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsWholeDay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置所属日历 ID。
|
||||
/// </summary>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
@@ -50,6 +50,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long? EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否设置为全天日程。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_whole_day")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_whole_day")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsWholeDay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日程标题。
|
||||
/// </summary>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
{
|
||||
"schedule": {
|
||||
"admins": ["admin1", "admin2"],
|
||||
"admins": [ "admin1", "admin2" ],
|
||||
"start_time": 1571274600,
|
||||
"end_time": 1571320210,
|
||||
"attendees": [
|
||||
@@ -18,12 +18,13 @@
|
||||
"repeat_until": 1606976813,
|
||||
"is_custom_repeat": 1,
|
||||
"repeat_interval": 1,
|
||||
"repeat_day_of_week": [3, 7],
|
||||
"repeat_day_of_month": [10, 21],
|
||||
"repeat_day_of_week": [ 3, 7 ],
|
||||
"repeat_day_of_month": [ 10, 21 ],
|
||||
"timezone": 8
|
||||
},
|
||||
"location": "广州国际媒体港10楼1005会议室",
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA"
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"is_whole_day": 1
|
||||
},
|
||||
"agentid": 1000014
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"schedule_list": [
|
||||
|
@@ -1,10 +1,10 @@
|
||||
{
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"schedule_list": [
|
||||
{
|
||||
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
|
||||
"admins": ["admin1", "admin2"],
|
||||
"admins": [ "admin1", "admin2" ],
|
||||
"attendees": [
|
||||
{
|
||||
"userid": "userid2",
|
||||
@@ -17,13 +17,13 @@
|
||||
"is_remind": 1,
|
||||
"is_repeat": 1,
|
||||
"remind_before_event_secs": 3600,
|
||||
"remind_time_diffs": [-3600],
|
||||
"remind_time_diffs": [ -3600 ],
|
||||
"repeat_type": 7,
|
||||
"repeat_until": 1606976813,
|
||||
"is_custom_repeat": 1,
|
||||
"repeat_interval": 1,
|
||||
"repeat_day_of_week": [3, 7],
|
||||
"repeat_day_of_month": [10, 21],
|
||||
"repeat_day_of_week": [ 3, 7 ],
|
||||
"repeat_day_of_month": [ 10, 21 ],
|
||||
"timezone": 8,
|
||||
"exclude_time_list": [
|
||||
{
|
||||
@@ -35,7 +35,8 @@
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"start_time": 1571274600,
|
||||
"end_time": 1571579410,
|
||||
"status": 1
|
||||
"status": 1,
|
||||
"is_whole_day": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -3,7 +3,7 @@
|
||||
"op_mode": 1,
|
||||
"op_start_time": 1571274600,
|
||||
"schedule": {
|
||||
"admins": ["admin1", "admin2"],
|
||||
"admins": [ "admin1", "admin2" ],
|
||||
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
|
||||
"start_time": 1571274600,
|
||||
"end_time": 1571320210,
|
||||
@@ -22,10 +22,11 @@
|
||||
"repeat_until": 1606976813,
|
||||
"is_custom_repeat": 1,
|
||||
"repeat_interval": 1,
|
||||
"repeat_day_of_week": [3, 7],
|
||||
"repeat_day_of_month": [10, 21],
|
||||
"repeat_day_of_week": [ 3, 7 ],
|
||||
"repeat_day_of_month": [ 10, 21 ],
|
||||
"timezone": 8
|
||||
},
|
||||
"location": "test_place"
|
||||
"location": "test_place",
|
||||
"is_whole_day": 1
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user