SPMS_API/SPMS.Application/DTOs/Service/CredentialsResponseDto.cs
SEAN d051ff3b97 improvement: APNs p12 인증서 지원 추가 (#214)
- Service 엔티티에 ApnsAuthType/ApnsCertificate/ApnsCertPassword/ApnsCertExpiresAt 추가
- EF Core Configuration + Migration (AddApnsP12Support)
- DTO: AuthType 분기 (p8/p12) 지원, p12 필드 추가
- 서비스 로직: AuthType별 검증/저장/조회 분기, X509CertificateLoader로 만료일 추출
- AuthType 전환 시 이전 타입 필드 null 초기화
- 컨트롤러 Swagger Description 업데이트

Closes #214
2026-02-25 13:01:55 +09:00

27 lines
731 B
C#

namespace SPMS.Application.DTOs.Service;
public class CredentialsResponseDto
{
public ApnsCredentialsInfoDto? Apns { get; set; }
public FcmCredentialsInfoDto? Fcm { get; set; }
}
public class ApnsCredentialsInfoDto
{
public string BundleId { get; set; } = string.Empty;
public string? AuthType { get; set; } // "p8" or "p12"
// p8 메타
public string? KeyId { get; set; }
public string? TeamId { get; set; }
public bool HasPrivateKey { get; set; }
// p12 메타
public bool HasCertificate { get; set; }
public DateTime? CertExpiresAt { get; set; }
}
public class FcmCredentialsInfoDto
{
public string? ProjectId { get; set; }
public bool HasCredentials { get; set; }
}