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