erp-platform/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/Entities/NotificationRule.cs

26 lines
1,002 B
C#
Raw Normal View History

2025-05-06 06:45:49 +00:00
using System;
2025-10-03 11:35:52 +00:00
using System.Collections.Generic;
2025-05-06 06:45:49 +00:00
using Volo.Abp.Domain.Entities.Auditing;
namespace Kurs.Notifications.Entities;
public class NotificationRule : FullAuditedEntity<Guid>
{
public required string NotificationType { get; set; }
/// <summary>
/// Alıcı Tipi: User, Role, Organization, All, Custom
/// User ise RecipientId UserId olacak
/// Role ise RecipientId RoleId olacak
/// Organization ise RecipientId OrganizationUnitId olacak, o birimdeki herkese bildirim gider
/// All ise RecipientId'ye bakılmaz tüm kullanıcılara bildirim gider
/// </summary>
public required string RecipientType { get; set; }
public string? RecipientId { get; set; } //UserName, RoleName, OrganizationUnitCode
public required string Channel { get; set; }
public bool IsActive { get; set; }
public bool IsFixed { get; set; }
public bool IsCustomized { get; set; }
2025-10-03 11:35:52 +00:00
public virtual ICollection<Notification> Notifications { get; set; } = [];
2025-05-06 06:45:49 +00:00
}