- 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
17 lines
443 B
C#
17 lines
443 B
C#
using System.Text.Json.Serialization;
|
|
using SPMS.Application.DTOs.Notice;
|
|
|
|
namespace SPMS.Application.DTOs.Notification;
|
|
|
|
public class NotificationListResponseDto
|
|
{
|
|
[JsonPropertyName("items")]
|
|
public List<NotificationItemDto> Items { get; set; } = new();
|
|
|
|
[JsonPropertyName("pagination")]
|
|
public PaginationDto Pagination { get; set; } = new();
|
|
|
|
[JsonPropertyName("unread_count")]
|
|
public int UnreadCount { get; set; }
|
|
}
|