- POST /v1/in/stats/daily: 기간별 일별 통계 - POST /v1/in/stats/summary: 대시보드 요약 통계 - POST /v1/in/stats/message: 메시지별 발송 통계 - POST /v1/in/stats/hourly: 시간대별 발송 추이 - POST /v1/in/stats/device: 디바이스 분포 통계 - IDailyStatRepository, DailyStatRepository 신규 - IPushSendLogRepository 통계 메서드 확장 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Stats;
|
|
|
|
public class SummaryStatResponseDto
|
|
{
|
|
[JsonPropertyName("total_devices")]
|
|
public int TotalDevices { get; set; }
|
|
|
|
[JsonPropertyName("active_devices")]
|
|
public int ActiveDevices { get; set; }
|
|
|
|
[JsonPropertyName("total_messages")]
|
|
public int TotalMessages { get; set; }
|
|
|
|
[JsonPropertyName("total_send")]
|
|
public long TotalSend { get; set; }
|
|
|
|
[JsonPropertyName("total_success")]
|
|
public long TotalSuccess { get; set; }
|
|
|
|
[JsonPropertyName("total_open")]
|
|
public long TotalOpen { get; set; }
|
|
|
|
[JsonPropertyName("avg_ctr")]
|
|
public double AvgCtr { get; set; }
|
|
|
|
[JsonPropertyName("today")]
|
|
public PeriodStatDto Today { get; set; } = new();
|
|
|
|
[JsonPropertyName("this_month")]
|
|
public PeriodStatDto ThisMonth { get; set; } = new();
|
|
}
|
|
|
|
public class PeriodStatDto
|
|
{
|
|
[JsonPropertyName("send_count")]
|
|
public int SendCount { get; set; }
|
|
|
|
[JsonPropertyName("success_count")]
|
|
public int SuccessCount { get; set; }
|
|
|
|
[JsonPropertyName("open_count")]
|
|
public int OpenCount { get; set; }
|
|
|
|
[JsonPropertyName("ctr")]
|
|
public double Ctr { get; set; }
|
|
}
|