using System.Text.Json.Serialization; using Newtonsoft.Json; namespace WeChatSharp.Interfaces; /// /// 微信模板消息接口定义 /// public interface IWeChatTemplateMessage { /// /// 接收者(用户)的 openid /// [JsonProperty("touser")] string ToUser { get; } /// /// 模板Id /// [JsonProperty("template_id")] string TemplateId { get; } /// /// 消息的Url /// [JsonProperty("url")] string Url { get; } /// /// 消息的id,通常为Guid.New /// [JsonProperty("client_msg_id")] string ClientMsgId { get; } /// /// 模板消息的数据 /// [JsonProperty("data")] IDictionary Data { get; } }