29 lines
714 B
C#
29 lines
714 B
C#
using LiveForum.Model.Events;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LiveForum.IService.Messages
|
|
{
|
|
/// <summary>
|
|
/// 消息事件处理器接口
|
|
/// 负责将事件转换为数据库消息记录
|
|
/// </summary>
|
|
public interface IMessageEventHandler
|
|
{
|
|
/// <summary>
|
|
/// 处理点赞事件
|
|
/// </summary>
|
|
Task HandleLikeEventAsync(LikeEvent evt);
|
|
|
|
/// <summary>
|
|
/// 处理评论回复事件
|
|
/// </summary>
|
|
Task HandleCommentReplyEventAsync(CommentReplyEvent evt);
|
|
|
|
/// <summary>
|
|
/// 处理自定义消息事件
|
|
/// </summary>
|
|
Task HandleCustomMessageEventAsync(CustomMessageEvent evt);
|
|
}
|
|
}
|
|
|