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