From 65eb9e785a6a254c107b32b5dc3a4be1bc1bdeea Mon Sep 17 00:00:00 2001 From: SEAN Date: Wed, 25 Feb 2026 16:50:17 +0900 Subject: [PATCH] =?UTF-8?q?improvement:=20=EB=8C=80=EC=8B=9C=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=20TopMessage=EC=97=90=20status=20=ED=95=84=EB=93=9C?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80=20(#193)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TopMessageDto에 status 필드 추가 (SendStatus.Determine 적용) - 대시보드/이력 간 동일 건의 상태 라벨 일치 보장 Closes #193 --- SPMS.Application/DTOs/Stats/DashboardResponseDto.cs | 3 +++ SPMS.Application/Services/StatsService.cs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SPMS.Application/DTOs/Stats/DashboardResponseDto.cs b/SPMS.Application/DTOs/Stats/DashboardResponseDto.cs index 0d72d5b..a3fdce9 100644 --- a/SPMS.Application/DTOs/Stats/DashboardResponseDto.cs +++ b/SPMS.Application/DTOs/Stats/DashboardResponseDto.cs @@ -69,4 +69,7 @@ public class TopMessageDto [JsonPropertyName("success_count")] public int SuccessCount { get; set; } + + [JsonPropertyName("status")] + public string Status { get; set; } = string.Empty; } diff --git a/SPMS.Application/Services/StatsService.cs b/SPMS.Application/Services/StatsService.cs index 45e1741..6a8776c 100644 --- a/SPMS.Application/Services/StatsService.cs +++ b/SPMS.Application/Services/StatsService.cs @@ -457,7 +457,8 @@ public class StatsService : IStatsService Title = m.Title, ServiceName = m.ServiceName, TotalSendCount = m.TotalSendCount, - SuccessCount = m.SuccessCount + SuccessCount = m.SuccessCount, + Status = SendStatus.Determine(m.TotalSendCount, m.SuccessCount) }).ToList() }; } -- 2.45.1