2021-03-29 23:16:11 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.BindingModels;
|
2021-03-26 20:09:52 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.BindingModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение пользователя
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UserGetBindingModel : GetBindingModel
|
|
|
|
|
{
|
2021-04-01 21:30:29 +04:00
|
|
|
|
public string UserNameForSearch { get; set; }
|
2021-03-26 20:09:52 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение пользователя
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UserSetBindingModel : SetBindingModel
|
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("Login")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public string Login { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
2021-03-30 22:34:31 +04:00
|
|
|
|
[MapConfiguration("Password")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("Avatar")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public byte[] Avatar { get; set; }
|
|
|
|
|
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("DateLastVisit")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public DateTime? DateLastVisit { get; set; }
|
|
|
|
|
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("IsBanned")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public bool IsBanned { get; set; }
|
|
|
|
|
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("DateBanned")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public DateTime? DateBanned { get; set; }
|
|
|
|
|
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("CountAttempt")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public int CountAttempt { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|