feat(wxapi): 随官方更新获取订阅消息个人模板列表的接口模型

This commit is contained in:
Fu Diwei
2022-09-07 09:59:23 +08:00
parent 0c0d2ffd9e
commit 227ff321b7
2 changed files with 47 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /wxaapi/newtmpl/gettemplate 接口的响应。</para>
@@ -9,6 +9,26 @@
{
public class Template
{
public static class Types
{
public class KeywordEnumValue
{
/// <summary>
/// 获取或设置枚举参数的 Key。
/// </summary>
[Newtonsoft.Json.JsonProperty("keywordCode")]
[System.Text.Json.Serialization.JsonPropertyName("keywordCode")]
public string KeywordCode { get; set; } = default!;
/// <summary>
/// 获取或设置枚举参数值列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("enumValueList")]
[System.Text.Json.Serialization.JsonPropertyName("enumValueList")]
public string[] EnumValueList { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置添加至帐号下的模板 ID。
/// </summary>
@@ -43,6 +63,13 @@
[Newtonsoft.Json.JsonProperty("example")]
[System.Text.Json.Serialization.JsonPropertyName("example")]
public string? Example { get; set; }
/// <summary>
/// 获取或设置枚举参数值范围列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("keywordEnumValueList")]
[System.Text.Json.Serialization.JsonPropertyName("keywordEnumValueList")]
public Types.KeywordEnumValue[]? KeywordEnumValueList { get; set; }
}
}