- Domain: NotificationCategory enum, Notification entity, INotificationRepository - Infrastructure: NotificationConfiguration, NotificationRepository, AppDbContext/DI 등록 - Migration: AddNotificationTable 생성 및 적용 - Application: DTO 7개, INotificationService, NotificationService, DI 등록 - API: NotificationController (summary, list, read, read-all) Closes #247
19 lines
546 B
C#
19 lines
546 B
C#
using SPMS.Domain.Enums;
|
|
|
|
namespace SPMS.Domain.Entities;
|
|
|
|
public class Notification : BaseEntity
|
|
{
|
|
public long TargetAdminId { get; set; }
|
|
public NotificationCategory Category { get; set; }
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Content { get; set; } = string.Empty;
|
|
public string? LinkUrl { get; set; }
|
|
public bool IsRead { get; set; }
|
|
public DateTime? ReadAt { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
// Navigation
|
|
public Admin TargetAdmin { get; set; } = null!;
|
|
}
|