mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
fix(work): 修复部分回调通知事件模型字段缺失的问题
This commit is contained in:
parent
c8ee389674
commit
795f6b180f
@ -86,7 +86,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置审批意见附件 MediaId 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("Attach", Type = typeof(string), IsNullable = true)]
|
||||
[System.Xml.Serialization.XmlArrayItem("Attach", Type = typeof(string), IsNullable = true)]
|
||||
public string[]? SpeechMediaIdList { get; set; }
|
||||
}
|
||||
}
|
||||
@ -145,7 +145,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置评论内容附件 MediaId 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("Attach", Type = typeof(string))]
|
||||
[System.Xml.Serialization.XmlArrayItem("Attach", Type = typeof(string))]
|
||||
public string[] MediaIdList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
@ -201,19 +201,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置抄送人列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("Notifyer", Type = typeof(Types.Notifier))]
|
||||
[System.Xml.Serialization.XmlArrayItem("Notifyer", Type = typeof(Types.Notifier))]
|
||||
public Types.Notifier[]? NotifyerList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审批流程列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("SpRecord", Type = typeof(Types.Record))]
|
||||
[System.Xml.Serialization.XmlArrayItem("SpRecord", Type = typeof(Types.Record))]
|
||||
public Types.Record[] RecordList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置评论列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("Comments", Type = typeof(Types.Comment))]
|
||||
[System.Xml.Serialization.XmlArrayItem("Comments", Type = typeof(Types.Comment))]
|
||||
public Types.Comment[] CommentList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置自定义字段列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("Item", Type = typeof(Types.Attribute))]
|
||||
[System.Xml.Serialization.XmlArrayItem("Item", Type = typeof(Types.Attribute))]
|
||||
public Types.Attribute[] AttributeList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@ -119,6 +119,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
[System.Xml.Serialization.XmlElement("UserID", IsNullable = true)]
|
||||
public string? UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置新的用户成员账号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("NewUserID", IsNullable = true)]
|
||||
public string? NewUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户成员别名。
|
||||
/// </summary>
|
||||
|
@ -15,6 +15,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DeviceSn")]
|
||||
public string DeviceSerialNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备型号 ID。
|
||||
/// </summary>
|
||||
|
@ -15,6 +15,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DeviceSn")]
|
||||
public string DeviceSerialNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备成功连接企业微信后台时的时间戳。
|
||||
/// </summary>
|
||||
|
@ -14,5 +14,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DeviceSn")]
|
||||
public string DeviceSerialNumber { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
|
@ -15,6 +15,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DeviceSn")]
|
||||
public string DeviceSerialNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备与企业微信后台网络连接断开时的时间戳。
|
||||
/// </summary>
|
||||
|
@ -9,6 +9,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// </summary>
|
||||
public class ErrorReportEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置服务商 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DeviceSn")]
|
||||
public string DeviceSerialNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备上报的错误码。
|
||||
/// </summary>
|
||||
|
@ -15,6 +15,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DeviceSn")]
|
||||
public string DeviceSerialNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日志文件的 MediaId。
|
||||
/// </summary>
|
||||
|
@ -15,6 +15,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
[System.Xml.Serialization.XmlElement("ServiceCorpId")]
|
||||
public string ServiceCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 CorpId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AuthCorpId", IsNullable = true)]
|
||||
public string? AuthorizerCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DeviceSn")]
|
||||
public string DeviceSerialNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备备注名称。
|
||||
/// </summary>
|
||||
|
@ -51,5 +51,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("QuitScene", IsNullable = true)]
|
||||
public int? QuitScene { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置成员变更数量。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("MemChangeCnt", IsNullable = true)]
|
||||
public int? MemberChangedCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
{
|
||||
public class SelectItem
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class OptionIdList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置选项列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlArrayItem("OpitonId", Type = typeof(string))]
|
||||
public string[] Items { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置问题的 Key 值。
|
||||
/// </summary>
|
||||
@ -23,8 +35,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置选项 ID 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("OpitonIds", Type = typeof(string))]
|
||||
public string[] OptionIdList { get; set; } = default!;
|
||||
[System.Xml.Serialization.XmlElement("OpitonIds")]
|
||||
public Types.OptionIdList OptionIdList { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class SelectList
|
||||
@ -32,7 +44,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置下拉框列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("SelectedItem", Type = typeof(SelectItem))]
|
||||
[System.Xml.Serialization.XmlArrayItem("SelectedItem", Type = typeof(SelectItem))]
|
||||
public SelectItem[]? Items { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@ -70,7 +82,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置下拉框列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("SelectList")]
|
||||
public Types.SelectList? SelectList { get; set; } = default!;
|
||||
[System.Xml.Serialization.XmlElement("SelectedItems")]
|
||||
public Types.SelectList SelectList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
/// <summary>
|
||||
/// 获取或设置图文列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("item", Type = typeof(ArticleItem))]
|
||||
[System.Xml.Serialization.XmlArrayItem("item", Type = typeof(ArticleItem))]
|
||||
public ArticleItem[] Items { get; set; } = new ArticleItem[0];
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,6 @@
|
||||
<InfoType><![CDATA[disconnect_info]]></InfoType>
|
||||
<TimeStamp>1548074765</TimeStamp>
|
||||
<ServiceCorpId><![CDATA[xxxx]]></ServiceCorpId>
|
||||
<ConnectTime>1352460633</ConnectTime>
|
||||
<DisconnectTime>1452460633</DisconnectTime>
|
||||
<Reason>1</Reason>
|
||||
</xml>
|
@ -6,5 +6,5 @@
|
||||
<Event><![CDATA[taskcard_click]]></Event>
|
||||
<EventKey><![CDATA[key111]]></EventKey>
|
||||
<TaskId><![CDATA[taskid111]]></TaskId>
|
||||
<AgentId>1</AgentId>
|
||||
<AgentID>1</AgentID>
|
||||
</xml>
|
||||
|
Loading…
Reference in New Issue
Block a user