mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(work): 随官方更新日历相关接口模型
This commit is contained in:
parent
293a577380
commit
4eff478dbb
@ -31,6 +31,23 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsReadonly { get; set; }
|
||||
}
|
||||
|
||||
public class PublicRange
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userids")]
|
||||
public IList<string>? UserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("partyids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("partyids")]
|
||||
public IList<long>? DepartmentIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -79,6 +96,31 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是公共日历。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_public")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_public")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsPublicCalendar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公开范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("public_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("public_range")]
|
||||
public Types.PublicRange? PublicRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是全员日历。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_corp_calendar")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_corp_calendar")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsCorpCalendar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历共享者列表。
|
||||
/// </summary>
|
||||
|
@ -29,6 +29,23 @@
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsReadonly { get; set; }
|
||||
}
|
||||
|
||||
public class PublicRange
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userids")]
|
||||
public string[]? UserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("partyids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("partyids")]
|
||||
public long[]? DepartmentIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -75,6 +92,31 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是公共日历。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_public")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_public")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsPublicCalendar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公开范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("public_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("public_range")]
|
||||
public Types.PublicRange? PublicRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是全员日历。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_corp_calendar")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_corp_calendar")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsCorpCalendar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历共享者列表。
|
||||
/// </summary>
|
||||
|
@ -16,6 +16,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public class Sharer : CgibinOACalendarAddRequest.Types.Calendar.Types.Sharer
|
||||
{
|
||||
}
|
||||
|
||||
public class PublicRange : CgibinOACalendarAddRequest.Types.Calendar.Types.PublicRange
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -55,6 +59,31 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是公共日历。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_public")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_public")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsPublicCalendar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公开范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("public_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("public_range")]
|
||||
public Types.PublicRange? PublicRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是全员日历。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_corp_calendar")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_corp_calendar")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsCorpCalendar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历共享者列表。
|
||||
/// </summary>
|
||||
@ -64,6 +93,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否不更新可订阅范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("skip_public_range")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("skip_public_range")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsSkipPublicRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历信息。
|
||||
/// </summary>
|
||||
|
@ -14,7 +14,13 @@
|
||||
"userid": "userid3",
|
||||
"readonly": 1
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_public": 1,
|
||||
"public_range": {
|
||||
"userids": ["abel", "jack"],
|
||||
"partyids": [1232, 34353]
|
||||
},
|
||||
"is_corp_calendar": 1
|
||||
},
|
||||
"agentid": 1000014
|
||||
}
|
||||
|
@ -17,7 +17,13 @@
|
||||
"userid": "userid1",
|
||||
"readonly": 1
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_public": 1,
|
||||
"public_range": {
|
||||
"userids": ["abel", "jack"],
|
||||
"partyids": [1232, 34353]
|
||||
},
|
||||
"is_corp_calendar": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"skip_public_range": 0,
|
||||
"calendar": {
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"readonly": 1,
|
||||
@ -13,6 +14,10 @@
|
||||
"userid": "userid2",
|
||||
"readonly": 1
|
||||
}
|
||||
]
|
||||
],
|
||||
"public_range": {
|
||||
"userids": ["abel", "jack"],
|
||||
"partyids": [1232, 34353]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user