mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 18:48:10 +08:00
feat(work): 新增上下游相关回调通知事件模型
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/90376 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/91167 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/90858 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/95797 </para>
|
||||
/// </summary>
|
||||
public class BatchJobResultEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
|
@@ -0,0 +1,54 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.change_chain 事件的数据。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/95796 </para>
|
||||
/// </summary>
|
||||
public class ChangeChainEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class GroupIdList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分组 ID 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("GroupId", Type = typeof(int))]
|
||||
public int[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CorpIdList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业 ID 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("CorpId", Type = typeof(string))]
|
||||
public string[] Items { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ChangeType")]
|
||||
public string ActionType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上下游 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ChainId")]
|
||||
public string ChainId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分组 ID 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("GroupIds", IsNullable = true)]
|
||||
public Types.GroupIdList? GroupIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业 ID 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("CorpIds", IsNullable = true)]
|
||||
public Types.CorpIdList? CorpIdList { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
<xml>
|
||||
<ToUserName><![CDATA[toUser]]></ToUserName>
|
||||
<FromUserName><![CDATA[sys]]></FromUserName>
|
||||
<CreateTime>1403610513</CreateTime>
|
||||
<MsgType><![CDATA[event]]></MsgType>
|
||||
<Event><![CDATA[change_chain]]></Event>
|
||||
<ChangeType><![CDATA[create_chain]]></ChangeType>
|
||||
<ChainId>![CDATA[xxxxxx]]</ChainId>
|
||||
<GroupIds>
|
||||
<GroupId>5</GroupId>
|
||||
<GroupId>6</GroupId>
|
||||
</GroupIds>
|
||||
<CorpIds>
|
||||
<CorpId>![CDATA[xxxxxx]]</CorpId>
|
||||
<CorpId>![CDATA[xxxxxx]]</CorpId>
|
||||
</CorpIds>
|
||||
</xml>
|
Reference in New Issue
Block a user