- 플랫폼 자격증명 삭제 API 추가 (APNs/FCM 각각) - 자격증명 진단 응답에 credentialStatus/statusReason 추가 - 수정 API에 Status 필드 추가 (원자적 상태 변경) - Swagger Description 업데이트 Closes #218
33 lines
1018 B
C#
33 lines
1018 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 string CredentialStatus { get; set; } = "none"; // ok|warn|error|none
|
|
public string? StatusReason { get; set; }
|
|
}
|
|
|
|
public class FcmCredentialsInfoDto
|
|
{
|
|
public string? ProjectId { get; set; }
|
|
public bool HasCredentials { get; set; }
|
|
// 진단 상태
|
|
public string CredentialStatus { get; set; } = "none"; // ok|none
|
|
public string? StatusReason { get; set; }
|
|
}
|