mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 19:37:35 +08:00
feat(wxapi): 随官方更新获取订阅消息个人模板列表的接口模型
This commit is contained in:
parent
0c0d2ffd9e
commit
227ff321b7
@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"data": [
|
||||
@ -8,6 +8,23 @@
|
||||
"content": "会议时间:{{date2.DATA}}\n会议地点:{{thing1.DATA}}\n",
|
||||
"example": "会议时间:2016年8月8日\n会议地点:TIT会议室\n",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"priTmplId": "cy_DfOZL7lypxHh3ja3DyAUbn1GYQRGwezuy5LBTFME",
|
||||
"title": "洗衣机故障提醒",
|
||||
"content": "完成时间:{{time1.DATA}}\n所在位置:{{enum_string2.DATA}}\n提示说明:{{enum_string3.DATA}}\n",
|
||||
"example": "完成时间:2021年10月21日 12:00:00\n所在位置:客厅\n提示说明:设备发生故障,导致工作异常,请及时查看\n",
|
||||
"keywordEnumValueList": [
|
||||
{
|
||||
"enumValueList": [ "客厅", "餐厅", "厨房", "卧室", "主卧", "次卧", "客卧", "父母房", "儿童房", "男孩房", "女孩房", "卫生间", "主卧卫生间", "公共卫生间", "衣帽间", "书房", "游戏室", "阳台", "地下室", "储物间", "车库", "保姆房", "其他房间" ],
|
||||
"keywordCode": "enum_string2.DATA"
|
||||
},
|
||||
{
|
||||
"enumValueList": [ "设备发生故障,导致工作异常,请及时查看" ],
|
||||
"keywordCode": "enum_string3.DATA"
|
||||
}
|
||||
],
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user