This commit is contained in:
CortexCore
2024-07-12 19:32:02 +08:00
commit 170f05af0c
13 changed files with 440 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System.Text.Json.Serialization;
using Newtonsoft.Json;
namespace WeChatSharp.Interfaces;
/// <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; }
}

View File

@@ -0,0 +1,9 @@
using System.ComponentModel.DataAnnotations;
namespace WeChatSharp.Interfaces.Topic;
public interface ITopModel
{
[Key]
Guid id { get; }
}

View File

@@ -0,0 +1,6 @@
namespace WeChatSharp.Interfaces.Topic;
public interface ITopicService
{
}