67 lines
1.4 KiB
C#
67 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Persistence.Models;
|
|
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>
|
|
}
|