23 lines
888 B
C#
23 lines
888 B
C#
|
|
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; }
|
|||
|
|
}
|