- 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
31 lines
789 B
C#
31 lines
789 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Notification;
|
|
|
|
public class NotificationItemDto
|
|
{
|
|
[JsonPropertyName("notification_id")]
|
|
public long NotificationId { get; set; }
|
|
|
|
[JsonPropertyName("category")]
|
|
public string Category { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("content")]
|
|
public string Content { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("link_url")]
|
|
public string? LinkUrl { get; set; }
|
|
|
|
[JsonPropertyName("is_read")]
|
|
public bool IsRead { get; set; }
|
|
|
|
[JsonPropertyName("read_at")]
|
|
public DateTime? ReadAt { get; set; }
|
|
|
|
[JsonPropertyName("created_at")]
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|