You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
611 B
21 lines
611 B
using System.ComponentModel.DataAnnotations;
|
|
using Infrastructure.Web;
|
|
using Infrastructure.Web.DataAnnotations;
|
|
|
|
namespace 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; }
|
|
}
|
|
} |