1234567891011121314151617181920 |
- using System;
- using System.ComponentModel.DataAnnotations;
- namespace Dto
- {
- public class LoginDto
- {
- /// <summary>
- /// 用户名
- /// </summary>
- [Required(ErrorMessage = "用户名不能为空")]
- public string AdminName { get; set; }
- /// <summary>
- /// 登录密码
- /// </summary>
- [Required(ErrorMessage = "登录密码不能为空")]
- public string Password { get; set; }
- }
- }
|