1
This commit is contained in:
35
Interfaces/TemplateMessage/IWeChatTemplateMessage.cs
Normal file
35
Interfaces/TemplateMessage/IWeChatTemplateMessage.cs
Normal 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; }
|
||||
}
|
9
Interfaces/Topic/ITopModel.cs
Normal file
9
Interfaces/Topic/ITopModel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WeChatSharp.Interfaces.Topic;
|
||||
|
||||
public interface ITopModel
|
||||
{
|
||||
[Key]
|
||||
Guid id { get; }
|
||||
}
|
6
Interfaces/Topic/ITopicService.cs
Normal file
6
Interfaces/Topic/ITopicService.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace WeChatSharp.Interfaces.Topic;
|
||||
|
||||
public interface ITopicService
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user