2024-11-18 14:22:09 +05:00
|
|
|
|
namespace Persistence.Models;
|
2024-10-31 17:02:48 +05:00
|
|
|
|
|
2024-11-18 14:22:09 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Модель, описывающая пользователя
|
|
|
|
|
/// </summary>
|
2024-10-31 17:02:48 +05:00
|
|
|
|
public class UserDto
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// логин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Login { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Имя
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Фамилия
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Surname { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Отчество
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Patronymic { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Email
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Email { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Phone
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Phone { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Должность
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Position { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id компании
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int IdCompany { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id состояния пользователя
|
|
|
|
|
/// 0 - не активен,
|
|
|
|
|
/// 1 - активен,
|
|
|
|
|
/// 2 - заблокирован
|
|
|
|
|
/// </summary>
|
|
|
|
|
public short IdState { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение отображаемого имени
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
}
|