using System.ComponentModel.DataAnnotations; namespace SPMS.Application.DTOs.Service; public class AddIpRequestDto { [Required(ErrorMessage = "IP 주소는 필수입니다.")] [RegularExpression( @"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", ErrorMessage = "유효한 IPv4 주소 형식이 아닙니다.")] public string IpAddress { get; set; } = string.Empty; }