This commit is contained in:
CortexCore
2024-07-29 16:14:23 +08:00
parent c6b591ede9
commit d291923276
36 changed files with 361 additions and 173 deletions

View File

@@ -0,0 +1,41 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace WeChatSharp
{
/// <summary>
/// 微信模板消息接口定义
/// </summary>
public interface IWeChatTemplateMessage
{
/// <summary>
/// 接收者(用户)的 openid
/// </summary>
[JsonProperty("touser")]
string ToUser { get; }
/// <summary>
/// 模板Id
/// </summary>
[JsonProperty("template_id")]
string TemplateId { get; }
/// <summary>
/// 消息的Url
/// </summary>
[JsonProperty("url")]
string Url { get; }
/// <summary>
/// 消息的id,通常为Guid.New
/// </summary>
[JsonProperty("client_msg_id")]
string ClientMsgId { get; }
/// <summary>
/// 模板消息的数据
/// </summary>
[JsonProperty("data")]
IDictionary<string, WeChatTemplateMessageData> Data { get; }
}
}