using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
namespace YD_XinWei.Commons
{
///
/// 用户名密码登录
///
public class LoginInfo
{
///
/// 角色Id
///
public int RoleId { get; set; }
///
/// 账号
///
[Display(Name = "账号")]
[MaxLength(50)]
[Required(ErrorMessage = "账号不能为空")]
public string Key { get; set; }
///
/// 密码
///
[MaxLength(50)]
[Display(Name = "密码")]
[Required(ErrorMessage = "密码不能为空")]
public string Password { get; set; }
///
/// 关联账号Id
///
public Guid? RelevanceId { get; set; }
}
}