using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApiTools.Core
{
///
/// 微信小程序获取订阅消息模板
///
public class GetWxmpSubscribMessageTemplatesRequest
{
///
/// 小程序编号
///
public string WxmpCode { get; set; }
}
///
/// 微信小程序获取订阅消息模板
///
public class GetWxmpSubscribMessageTemplatesResponse
{
///
/// 错误码
///
[JsonProperty("errcode")]
public int ErrorCode { get; set; }
///
/// 错误信息
///
[JsonProperty("errmsg")]
public string ErrorMessage { get; set; }
///
/// 模板列表
///
[JsonProperty("data")]
public List Items { get; set; } = [];
}
///
/// 微信小程序获取订阅消息模板
///
public class GetWxmpSubscribMessageTemplatesResponseData
{
///
/// 添加至账号下的模板 id,发送小程序订阅消息时所需
///
[JsonProperty("priTmplId")]
public string TemplateId { get; set; }
///
/// 模版标题
///
[JsonProperty("title")]
public string Title { get; set; }
///
/// 模版内容
///
[JsonProperty("content")]
public string Content { get; set; }
///
/// 模板内容示例
///
[JsonProperty("example")]
public string Example { get; set; }
///
/// 模版类型,2 为一次性订阅,3 为长期订阅
///
[JsonProperty("type")]
public int Type { get; set; }
///
/// 枚举参数值范围
///
[JsonProperty("keywordEnumValueList")]
public List Values { get; set; } = [];
}
///
/// 微信小程序获取订阅消息模板
///
public class GetWxmpSubscribMessageTemplatesResponseDataValue
{
///
/// 枚举参数的 key
///
[JsonProperty("keywordCode")]
public string Code { get; set; }
///
/// 枚举参数值范围列表
///
[JsonProperty("enumValueList")]
public List Values { get; set; } = [];
}
}