mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 10:41:58 +08:00
feat(work): 随官方更新日程相关接口模型
This commit is contained in:
parent
4eff478dbb
commit
dfb8f0e58f
@ -11,5 +11,19 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("schedule_id")]
|
[Newtonsoft.Json.JsonProperty("schedule_id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("schedule_id")]
|
[System.Text.Json.Serialization.JsonPropertyName("schedule_id")]
|
||||||
public string ScheduleId { get; set; } = string.Empty;
|
public string ScheduleId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置操作模式。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("op_mode")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("op_mode")]
|
||||||
|
public int? OperateMode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置操作起始时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("op_start_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("op_start_time")]
|
||||||
|
public long? OperateStartTimestamp { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,14 +85,46 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
|
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
|
||||||
public IList<Types.Attendee>? AttendeeList { get; set; }
|
public IList<Types.Attendee>? AttendeeList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否允许非参与人主动加入日程。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("allow_active_join")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("allow_active_join")]
|
||||||
|
public bool? IsAllowActiveJoin { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否只允许组织者发起群聊。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("only_organizer_create_chat")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("only_organizer_create_chat")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||||
|
public bool? IsOnlyOrganizerCreateChat { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置是否忽略参与者字段。
|
/// 获取或设置是否忽略参与者字段。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("skip_attendees")]
|
[Newtonsoft.Json.JsonProperty("skip_attendees")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("skip_attendees")]
|
[System.Text.Json.Serialization.JsonPropertyName("skip_attendees")]
|
||||||
public bool? RequireSkipAttendees { get; set; }
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||||
}
|
public bool? IsSkipAttendees { get; set; }
|
||||||
}
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置操作模式。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("op_mode")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("op_mode")]
|
||||||
|
public int? OperateMode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置操作起始时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("op_start_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("op_start_time")]
|
||||||
|
public long? OperateStartTimestamp { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置日程信息。
|
/// 获取或设置日程信息。
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
{
|
{
|
||||||
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA"
|
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
|
||||||
|
"op_mode": 1,
|
||||||
|
"op_start_time": 1571274600
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
{
|
{
|
||||||
|
"skip_attendees": 0,
|
||||||
|
"op_mode": 1,
|
||||||
|
"op_start_time": 1571274600,
|
||||||
"schedule": {
|
"schedule": {
|
||||||
"organizer": "userid1",
|
"organizer": "userid1",
|
||||||
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
|
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
|
||||||
"start_time": 1571274600,
|
"start_time": 1571274600,
|
||||||
"end_time": 1571320210,
|
"end_time": 1571320210,
|
||||||
"attendees": [
|
"attendees": [{
|
||||||
{
|
|
||||||
"userid": "userid2"
|
"userid": "userid2"
|
||||||
}
|
}],
|
||||||
],
|
|
||||||
"summary": "test_summary",
|
"summary": "test_summary",
|
||||||
"description": "test_description",
|
"description": "test_description",
|
||||||
"reminders": {
|
"reminders": {
|
||||||
@ -24,6 +25,7 @@
|
|||||||
"timezone": 8
|
"timezone": 8
|
||||||
},
|
},
|
||||||
"location": "test_place",
|
"location": "test_place",
|
||||||
"skip_attendees": true
|
"allow_active_join": true,
|
||||||
|
"only_organizer_create_chat": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user