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

This commit is contained in:
Fu Diwei 2021-10-21 21:44:40 +08:00
parent 9c42ab19d1
commit 801c85172b

View File

@ -30,6 +30,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string MediaId { get; set; } = string.Empty;
}
[Obsolete("相关接口将于 2021-12-31 下线")]
public class MpNewsMessage : ImageMessage
{
}
@ -78,6 +79,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public IList<Types.Article> ArticleList { get; set; } = new List<Types.Article>();
}
public class MpNewsArticleMessage
{
/// <summary>
/// 获取或设置图文消息的 ArticleId。
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
public string ArticleId { get; set; } = string.Empty;
}
public class LinkMessage
{
/// <summary>
@ -295,6 +306,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置图文消息内容。
/// </summary>
[Obsolete("相关接口将于 2021-12-31 下线")]
[Newtonsoft.Json.JsonProperty("mpnews")]
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }
@ -306,6 +318,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("news")]
public Types.NewsMessage? MessageContentForNews { get; set; }
/// <summary>
/// 获取或设置图文消息内容。
/// </summary>
[Newtonsoft.Json.JsonProperty("mpnewsarticle")]
[System.Text.Json.Serialization.JsonPropertyName("mpnewsarticle")]
public Types.MpNewsArticleMessage? MessageContentForMpNewsArticle { get; set; }
/// <summary>
/// 获取或设置图文链接消息内容。
/// </summary>