DD.WellWorkover.Cloud/AsbCloudApp/Data/FaqDto.cs

73 lines
1.6 KiB
C#
Raw Normal View History

using System;
using System.ComponentModel.DataAnnotations;
2024-08-19 10:01:07 +05:00
namespace AsbCloudApp.Data;
/// <summary>
/// DTO для faq-вопроса
/// </summary>
public class FaqDto : IId
{
/// <summary>
2024-08-19 10:01:07 +05:00
/// ключ вопроса
/// </summary>
2024-08-19 10:01:07 +05:00
[Required]
public int Id { get; set; }
2024-08-19 10:01:07 +05:00
/// <summary>
/// ключ автора вопроса
/// </summary>
public int? IdAuthorQuestion { get; set; }
2024-08-19 10:01:07 +05:00
/// <summary>
/// автор ответа
/// </summary>
public int? IdAuthorAnswer { get; set; }
2024-08-19 10:01:07 +05:00
/// <summary>
/// дата создания вопроса
/// </summary>
public DateTimeOffset? DateCreatedQuestion { get; set; }
2024-08-19 10:01:07 +05:00
/// <summary>
/// текст вопроса
/// </summary>
[Required]
public string Question { get; set; } = null!;
2024-08-19 10:01:07 +05:00
/// <summary>
/// текст ответа
/// </summary>
public string? Answer { get; set; }
2024-08-19 10:01:07 +05:00
/// <summary>
/// статус вопроса
/// </summary>
[Required]
public int State { get; set; } = 0;
2024-08-19 10:01:07 +05:00
/// <summary>
/// Счетчик повторений вопроса
/// </summary>
[Required]
public int CounterQuestion { get; set; } = 1;
2024-08-19 10:01:07 +05:00
/// <summary>
/// Частый вопрос
/// </summary>
[Required]
public bool IsFrequently { get; set; } = false;
2024-08-19 10:01:07 +05:00
/// <summary>
/// Автор вопроса
/// </summary>
[Required]
public string AurhorQuestionName { get; set; } = string.Empty;
2024-08-19 10:01:07 +05:00
/// <summary>
/// Автор ответа
/// </summary>
public string? AurhorAnswerName { get; set; }
}