using Sanhe.Abp.RealTime; using System; using System.Collections.Generic; using Volo.Abp.EventBus; using Volo.Abp.MultiTenancy; namespace Sanhe.Abp.Notifications; /// /// 通知事件传输对象 /// /// [Serializable] [GenericEventName(Prefix = "abp.realtime.")] public class NotificationEto : RealTimeEto, IMultiTenant { /// /// 通知标识 /// 自动计算 /// public long Id { get; set; } /// /// 租户 /// public Guid? TenantId { get; set; } /// /// 通知名称 /// public string Name { get; set; } /// /// 创建时间 /// public DateTime CreationTime { get; set; } /// /// 紧急级别 /// public NotificationSeverity Severity { get; set; } /// /// 指定的接收用户信息集合 /// /// /// 注:
/// 如果指定了用户列表,应该在事件订阅程序中通过此集合过滤订阅用户
/// 如果未指定用户列表,应该在事件订阅程序中过滤所有订阅此通知的用户 ///
public List Users { get; set; } = new List(); public NotificationEto() : base() { } public NotificationEto(T data) : base(data) { } }