- POST /v1/in/push/log 엔드포인트 추가 - PushSendLogRepository (페이징, 필터링: message_code, device_id, status, 날짜범위) - PushService.GetLogAsync 구현 - 누락된 Push DTO 파일 포함 (PushSendRequestDto, PushSendResponseDto, PushSendTagRequestDto)
35 lines
865 B
C#
35 lines
865 B
C#
using System.Text.Json.Serialization;
|
|
using SPMS.Application.DTOs.Notice;
|
|
|
|
namespace SPMS.Application.DTOs.Push;
|
|
|
|
public class PushLogResponseDto
|
|
{
|
|
[JsonPropertyName("items")]
|
|
public List<PushLogItemDto> Items { get; set; } = [];
|
|
|
|
[JsonPropertyName("pagination")]
|
|
public PaginationDto Pagination { get; set; } = new();
|
|
}
|
|
|
|
public class PushLogItemDto
|
|
{
|
|
[JsonPropertyName("send_id")]
|
|
public long SendId { get; set; }
|
|
|
|
[JsonPropertyName("message_code")]
|
|
public string MessageCode { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("device_id")]
|
|
public long DeviceId { get; set; }
|
|
|
|
[JsonPropertyName("status")]
|
|
public string Status { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("fail_reason")]
|
|
public string? FailReason { get; set; }
|
|
|
|
[JsonPropertyName("sent_at")]
|
|
public DateTime SentAt { get; set; }
|
|
}
|