mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-17 05:48:09 +08:00
feat(work): 随官方更新日历相关接口模型
This commit is contained in:
@@ -6,6 +6,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// </summary>
|
||||
public class ApproveSpecialAuthEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方应用的 SuiteId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("SuiteId")]
|
||||
public string SuiteId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId")]
|
||||
public string AuthorizerCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置权限类型。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
@@ -23,13 +23,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string UserId { 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("permission")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("permission")]
|
||||
public int? Permission { get; set; }
|
||||
}
|
||||
|
||||
public class PublicRange
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/oa/calendar/get 接口的响应。</para>
|
||||
@@ -21,13 +21,11 @@
|
||||
public string UserId { 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("permission")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("permission")]
|
||||
public int Permission { get; set; }
|
||||
}
|
||||
|
||||
public class PublicRange
|
||||
|
||||
Reference in New Issue
Block a user