feat(work): 随官方更新微信客服消息相关接口模型

This commit is contained in:
fudiwei
2023-01-12 10:16:55 +08:00
parent 2bb89a58ad
commit 950cb062d6
7 changed files with 45 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/get_corp_statistic 接口的响应。</para>
@@ -41,6 +41,13 @@
[System.Text.Json.Serialization.JsonPropertyName("upgrade_service_customer_cnt")]
public int UpgradeServiceCustomerCount { get; set; }
/// <summary>
/// 获取或设置被拒收消息的客户数。
/// </summary>
[Newtonsoft.Json.JsonProperty("msg_rejected_customer_cnt")]
[System.Text.Json.Serialization.JsonPropertyName("msg_rejected_customer_cnt")]
public int MessageRejectedCustomerCount { get; set; }
/// <summary>
/// 获取或设置智能回复会话数。
/// </summary>

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/get_servicer_statistic 接口的响应。</para>
@@ -117,6 +117,13 @@
[Newtonsoft.Json.JsonProperty("upgrade_service_groupchat_customer_cnt")]
[System.Text.Json.Serialization.JsonPropertyName("upgrade_service_groupchat_customer_cnt")]
public int UpgradeServiceGroupChatCustomerCount { get; set; }
/// <summary>
/// 获取或设置被拒收消息的客户数。
/// </summary>
[Newtonsoft.Json.JsonProperty("msg_rejected_customer_cnt")]
[System.Text.Json.Serialization.JsonPropertyName("msg_rejected_customer_cnt")]
public int MessageRejectedCustomerCount { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
@@ -107,6 +107,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[Newtonsoft.Json.JsonProperty("content")]
[System.Text.Json.Serialization.JsonPropertyName("content")]
public string Content { get; set; } = string.Empty;
/// <summary>
/// 获取或设置内容后面是否不换行。
/// </summary>
[Newtonsoft.Json.JsonProperty("no_newline")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("no_newline")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
public bool? IsNoNewline { get; set; }
}
public class Click