improvement: 대시보드 TopMessage에 status 필드 추가 (#193)
All checks were successful
SPMS_API/pipeline/head This commit looks good
All checks were successful
SPMS_API/pipeline/head This commit looks good
Reviewed-on: https://git.ipstein.myds.me/SPMS/SPMS_API/pulls/236
This commit is contained in:
commit
016550e3b9
|
|
@ -69,4 +69,7 @@ public class TopMessageDto
|
|||
|
||||
[JsonPropertyName("success_count")]
|
||||
public int SuccessCount { get; set; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user