using System.ComponentModel.DataAnnotations; namespace SPMS.Application.DTOs.Service; public class ApnsCredentialsRequestDto { [Required(ErrorMessage = "Bundle ID는 필수입니다.")] public string BundleId { get; set; } = string.Empty; [Required(ErrorMessage = "인증 타입은 필수입니다.")] [RegularExpression("^(p8|p12)$", ErrorMessage = "AuthType은 p8 또는 p12만 가능합니다.")] public string AuthType { get; set; } = "p8"; // p8 필드 (AuthType=p8일 때 서비스에서 필수 검증) [StringLength(10, MinimumLength = 10, ErrorMessage = "Key ID는 10자리여야 합니다.")] public string? KeyId { get; set; } [StringLength(10, MinimumLength = 10, ErrorMessage = "Team ID는 10자리여야 합니다.")] public string? TeamId { get; set; } public string? PrivateKey { get; set; } // p12 필드 (AuthType=p12일 때 서비스에서 필수 검증) public string? CertificateBase64 { get; set; } public string? CertPassword { get; set; } }