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

23 lines
888 B
C#
Raw Normal View History

2025-05-06 06:45:49 +00:00
using System;
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; }
}