using System.ComponentModel.DataAnnotations; namespace DouyinApi.Model.Naming { public class SurnameValidationRequest { [Required] [MinLength(1)] [MaxLength(2)] public string Surname { get; set; } = string.Empty; } }