feat(wxapi): 随官方更新自定义菜单相关接口模型

This commit is contained in:
Fu Diwei 2021-10-21 21:44:48 +08:00
parent 801c85172b
commit a1559c057f
3 changed files with 26 additions and 2 deletions

View File

@ -41,12 +41,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string? Url { get; set; }
/// <summary>
/// 获取或设置媒体文件标识 ID
/// 获取或设置媒体文件标识
/// </summary>
[Newtonsoft.Json.JsonProperty("media_id")]
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
public string? MediaId { get; set; }
/// <summary>
/// 获取或设置图文消息的 ArticleId。
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
public string? ArticleId { get; set; }
/// <summary>
/// 获取或设置小程序的 AppId。
/// </summary>

View File

@ -45,12 +45,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string? Url { get; set; }
/// <summary>
/// 获取或设置媒体文件标识 ID
/// 获取或设置媒体文件标识
/// </summary>
[Newtonsoft.Json.JsonProperty("media_id")]
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
public string? MediaId { get; set; }
/// <summary>
/// 获取或设置图文消息的 ArticleId。
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
public string? ArticleId { get; set; }
/// <summary>
/// 获取或设置小程序的 AppId。
/// </summary>

View File

@ -76,6 +76,16 @@
"type": "view_limited",
"name": "图文消息",
"media_id": "MEDIA_ID2"
},
{
"type": "article_id",
"name": "发布后的图文消息",
"article_id": "ARTICLE_ID1"
},
{
"type": "article_view_limited",
"name": "发布后的图文消息",
"article_id": "ARTICLE_ID2"
}
]
}