using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Sanhe.Abp.Notifications; /// /// 发送通知接口 /// public interface INotificationSender { /// /// 发送通知 /// /// 名称 /// 数据 /// 用户,为空标识发给所有订阅用户 /// 租户 /// 严重级别 /// 通知标识 Task SendNofiterAsync( string name, NotificationData data, UserIdentifier user = null, Guid? tenantId = null, NotificationSeverity severity = NotificationSeverity.Info); /// /// 发送通知 /// /// 名称 /// 数据 /// 用户列表,为空标识发给所有订阅用户 /// 租户 /// 严重级别 /// 通知标识 Task SendNofitersAsync( string name, NotificationData data, IEnumerable users = null, Guid? tenantId = null, NotificationSeverity severity = NotificationSeverity.Info); }