namespace Admin.NET.Core.Service; public interface IMessageService { /// /// 发送消息给某个人 /// /// 发送标题 /// 发送内容 /// 接收人 /// 消息类型 /// Task SendMessageToUser(string title, string message, MessageTypeEnum type, long userId); /// /// 发送消息给某些人 /// /// 发送标题 /// 发送内容 /// 接收人列表 /// 消息类型 /// Task SendMessageToUsers(string title, string message, MessageTypeEnum type, List userId); /// /// 发送消息给所有人 /// /// 发送标题 /// 发送内容 /// 消息类型 /// Task SendMessageToAllUser(string title, string message, MessageTypeEnum type); /// /// 发送消息给除了发送人的其他人 /// /// 发送标题 /// 发送内容 /// 发送人 /// 消息类型 /// Task SendMessageToOtherUser(string title, string message, MessageTypeEnum type, long userId); /// /// 发送邮件 /// /// /// Task SendEmail(string message); }