using Infrastructure.Web.DataAnnotations; using System.ComponentModel.DataAnnotations; namespace IoT.Shared.Application.Models { [Display(Name = "安全验证")] public class ValidateModel { [UIHint("SelectList")] [Required(ErrorMessage = nameof(RequiredAttribute))] [Display(Name = "验证方式")] public string Type { get; set; } [UIHint("CodeCaptcha")] [CodeCaptchaAttribute] [Required(ErrorMessage = nameof(RequiredAttribute))] [Display(Name = "验证码")] public string CodeCaptcha { get; set; } } }