43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using ModuleTools.Attributes;
|
|
using ModuleTools.BindingModels;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace SecurityBusinessLogic.BindingModels
|
|
{
|
|
/// <summary>
|
|
/// Получение пользователя
|
|
/// </summary>
|
|
public class UserGetBindingModel : GetBindingModel
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Сохранение пользователя
|
|
/// </summary>
|
|
public class UserSetBindingModel : SetBindingModel
|
|
{
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("Login")]
|
|
public string Login { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("Password")]
|
|
public string Password { get; set; }
|
|
|
|
[MapConfiguration("Avatar")]
|
|
public byte[] Avatar { get; set; }
|
|
|
|
[MapConfiguration("DateLastVisit")]
|
|
public DateTime? DateLastVisit { get; set; }
|
|
|
|
[MapConfiguration("IsBanned")]
|
|
public bool IsBanned { get; set; }
|
|
|
|
[MapConfiguration("DateBanned")]
|
|
public DateTime? DateBanned { get; set; }
|
|
|
|
[MapConfiguration("CountAttempt")]
|
|
public int CountAttempt { get; set; }
|
|
}
|
|
} |