mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-16 07:59:44 +08:00
feat(work): 随官方更新企业群发相关接口模型
This commit is contained in:
parent
fd51c4725f
commit
21a40a0abe
@ -0,0 +1,45 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.customer_acquisition 事件的数据。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97299 </para>
|
||||
/// </summary>
|
||||
public class CustomerAcquisitionEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置变更类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ChangeType")]
|
||||
public string ChangeType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置获客链接 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("LinkId", IsNullable = true)]
|
||||
public string? LinkId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业服务人员的成员账号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("UserID", IsNullable = true)]
|
||||
public string? UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置外部联系人 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ExternalUserID", IsNullable = true)]
|
||||
public string? ExternalUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置过期时间戳戳。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ExpireTime", IsNullable = true)]
|
||||
public long? ExpireTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置过期获客额度数。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ExpireQuotaNum", IsNullable = true)]
|
||||
public int? ExpireQuota { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 INFO.cancel_special_auth 事件的数据。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98959 </para>
|
||||
/// </summary>
|
||||
public class CancelSpecialAuthEvent : 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>
|
||||
[System.Xml.Serialization.XmlElement("AuthType")]
|
||||
public string AuthType { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -9,6 +9,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class TagFilter
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class TagFilterGroup
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标签列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_list")]
|
||||
public IList<string>? TagList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置标签筛选分组列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("group_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_list")]
|
||||
public IList<Types.TagFilterGroup>? GroupList { get; set; }
|
||||
}
|
||||
|
||||
public class Text
|
||||
{
|
||||
/// <summary>
|
||||
@ -181,6 +204,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("external_userid")]
|
||||
public IList<string>? ExternalUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客户群 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("chat_id_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("chat_id_list")]
|
||||
public IList<string>? GroupChatIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置标签筛选条件。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_filter")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_filter")]
|
||||
public Types.TagFilter? TagFilter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发送者成员账号。
|
||||
/// </summary>
|
||||
|
@ -4,6 +4,17 @@
|
||||
"woAJ2GCAAAXtWyujaWJHDDGi0mACAAAA",
|
||||
"wmqfasd1e1927831123109rBAAAA"
|
||||
],
|
||||
"chat_id_list": [ "wr2GCAAAXtWyujaWJHDDGasdadAAA" ],
|
||||
"tag_filter": {
|
||||
"group_list": [
|
||||
{
|
||||
"tag_list": [ "ete19278asuMT123109rBAAAA", "ete19MT12278109UYteaBAAAA" ]
|
||||
},
|
||||
{
|
||||
"tag_list": [ "eteIlKKHSDfuMT18Kg9rBAAAA" ]
|
||||
}
|
||||
]
|
||||
},
|
||||
"sender": "zhangsan",
|
||||
"allow_select": true,
|
||||
"text": {
|
||||
|
Loading…
Reference in New Issue
Block a user