mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-11 02:07:49 +08:00
feat(work): 随官方更新日历相关接口模型
This commit is contained in:
@@ -470,8 +470,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/oa/calendar/update 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93647 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93702 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97716 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -491,8 +490,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/oa/calendar/get 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93647 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93702 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97717 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -512,8 +510,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/oa/calendar/del 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93647 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93702 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97718 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
|
||||
@@ -51,23 +51,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置组织者成员账号。
|
||||
/// 获取或设置管理员成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("organizer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("organizer")]
|
||||
public string OrganizerUserId { get; set; } = string.Empty;
|
||||
[Newtonsoft.Json.JsonProperty("admins")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admins")]
|
||||
public IList<string>? AdminUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置组织者对日历是否只读权限。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("readonly")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("readonly")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsReadonly { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否将该日历设置为组织者的默认日历。
|
||||
/// 获取或设置是否将该日历设置为默认日历。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("set_as_default")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
|
||||
@@ -56,20 +56,11 @@
|
||||
public string CalendarId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置组织者成员账号。
|
||||
/// 获取或设置管理员成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("organizer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("organizer")]
|
||||
public string OrganizerUserId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置组织者对日历是否只读权限。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("readonly")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("readonly")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsReadonly { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("admins")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admins")]
|
||||
public string[] AdminUserId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历标题。
|
||||
|
||||
@@ -30,13 +30,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string CalendarId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置组织者对日历是否只读权限。
|
||||
/// 获取或设置管理员成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("readonly")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("readonly")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsReadonly { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("admins")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admins")]
|
||||
public IList<string>? AdminUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历标题。
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"calendar": {
|
||||
"organizer": "userid1",
|
||||
"readonly": 1,
|
||||
"admins": ["admin1", "admin2"],
|
||||
"set_as_default": 1,
|
||||
"summary": "test_summary",
|
||||
"color": "#FF3030",
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
"calendar_list": [
|
||||
{
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"organizer": "userid1",
|
||||
"readonly": 1,
|
||||
"admins": ["admin1", "admin2"],
|
||||
"summary": "test_summary",
|
||||
"color": "#FF3030",
|
||||
"description": "test_describe_1",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"skip_public_range": 0,
|
||||
"calendar": {
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"readonly": 1,
|
||||
"admins": ["admin1", "admin2"],
|
||||
"summary": "test_summary",
|
||||
"color": "#FF3030",
|
||||
"description": "test_describe_1",
|
||||
|
||||
Reference in New Issue
Block a user