- PlatformSummaryDto / PlatformCredentialSummaryDto 신규 생성 - ServiceSummaryDto에 Platforms 필드 추가 (목록 응답) - ServiceResponseDto에 ApnsAuthType + Platforms 필드 추가 (상세 응답) - BuildPlatformSummary 메서드로 Android/iOS 상태 판정 - Android: FcmCredentials 유무 → ok/none - iOS p8: → ok - iOS p12: 만료됨→error, 30일 이내→warn, 그 외→ok - Swagger Description 업데이트 Closes #216
23 lines
789 B
C#
23 lines
789 B
C#
namespace SPMS.Application.DTOs.Service;
|
|
|
|
public class ServiceListResponseDto
|
|
{
|
|
public List<ServiceSummaryDto> Items { get; set; } = new();
|
|
public int TotalCount { get; set; }
|
|
public int Page { get; set; }
|
|
public int PageSize { get; set; }
|
|
public int TotalPages => (int)Math.Ceiling((double)TotalCount / PageSize);
|
|
}
|
|
|
|
public class ServiceSummaryDto
|
|
{
|
|
public string ServiceCode { get; set; } = string.Empty;
|
|
public string ServiceName { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public string SubTier { get; set; } = string.Empty;
|
|
public string Status { get; set; } = string.Empty;
|
|
public DateTime CreatedAt { get; set; }
|
|
public int DeviceCount { get; set; }
|
|
public PlatformSummaryDto? Platforms { get; set; }
|
|
}
|