feat(work): 新增微盘相关回调通知事件模型

This commit is contained in:
fudiwei 2022-12-03 18:29:43 +08:00
parent 254221c5a1
commit f4fde0733b
15 changed files with 98 additions and 17 deletions

View File

@ -28,10 +28,10 @@
}
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置上下游 ID。

View File

@ -101,10 +101,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
public string? AuthorizerCorpId { get; set; }
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置成员、部门或标签名称。

View File

@ -7,10 +7,10 @@
public class AppEmailChangeEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
{
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置新邮件数。

View File

@ -20,10 +20,10 @@
public string? AuthorizerCorpId { get; set; }
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置客户群 ID。

View File

@ -21,10 +21,10 @@
public string? AuthorizerCorpId { get; set; }
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置用户成员账号。

View File

@ -20,10 +20,10 @@
public string? AuthorizerCorpId { get; set; }
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置 ID 类型。

View File

@ -8,10 +8,10 @@
public class MeetingChangeEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
{
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置会议 ID。

View File

@ -22,10 +22,10 @@
public string? AuthorizerCorpId { get; set; }
/// <summary>
/// 获取或设置操作类型。
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ActionType { get; set; } = default!;
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置学生/家长账号或部门 ID即班级

View File

@ -1,7 +1,7 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
{
/// <summary>
/// <para>表示 agree_external_userid_migration 事件的数据。</para>
/// <para>表示 EVENT.agree_external_userid_migration 事件的数据。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/95327 </para>
/// </summary>
public class AgreeExternalUserIdMigrationEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable, WechatWorkEvent.Serialization.IJsonSerializable

View File

@ -0,0 +1,21 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
{
/// <summary>
/// <para>表示 EVENT.wedrive_file_change 事件的数据。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97975 </para>
/// </summary>
public class WedriveFileChangeEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
{
/// <summary>
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置文件 ID 列表。
/// </summary>
[System.Xml.Serialization.XmlElement("FileId", Type = typeof(string))]
public string[] FileIdList { get; set; } = default!;
}
}

View File

@ -0,0 +1,10 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
{
/// <summary>
/// <para>表示 EVENT.wedrive_insufficient_capacity 事件的数据。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97972 </para>
/// </summary>
public class WedriveInsufficientCapacityEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
{
}
}

View File

@ -0,0 +1,24 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
{
/// <summary>
/// <para>表示 EVENT.wedrive_space_change 事件的数据。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97973 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97976 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97977 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97978 </para>
/// </summary>
public class WedriveSpaceChangeEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
{
/// <summary>
/// 获取或设置变更类型。
/// </summary>
[System.Xml.Serialization.XmlElement("ChangeType")]
public string ChangeType { get; set; } = default!;
/// <summary>
/// 获取或设置空间 ID 列表。
/// </summary>
[System.Xml.Serialization.XmlElement("SpaceId", Type = typeof(string))]
public string[] SpaceIdList { get; set; } = default!;
}
}

View File

@ -0,0 +1,9 @@
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[sys]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[wedrive_file_change]]></Event>
<ChangeType><![CDATA[xxx_file]]></ChangeType>
<FileId><![CDATA[spxxxxxxxxxxxxx]]></FileId>
</xml>

View File

@ -0,0 +1,7 @@
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[sys]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[wedrive_insufficient_capacity]]></Event>
</xml>

View File

@ -0,0 +1,10 @@
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[wedrive_space_change]]></Event>
<ChangeType><![CDATA[dismiss_space]]></ChangeType>
<SpaceId><![CDATA[wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA]]></SpaceId>
<SpaceId><![CDATA[wcjgewCwAAqeJcPI1d8Pwbjt7nttzBBB]]></SpaceId>
</xml>