31 lines
716 B
C#
31 lines
716 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Faq;
|
|
|
|
public class FaqListResponseDto
|
|
{
|
|
[JsonPropertyName("items")]
|
|
public List<FaqItemDto> Items { get; set; } = new();
|
|
|
|
[JsonPropertyName("total_count")]
|
|
public int TotalCount { get; set; }
|
|
}
|
|
|
|
public class FaqItemDto
|
|
{
|
|
[JsonPropertyName("faq_id")]
|
|
public long FaqId { get; set; }
|
|
|
|
[JsonPropertyName("category")]
|
|
public string? Category { get; set; }
|
|
|
|
[JsonPropertyName("question")]
|
|
public string Question { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("answer")]
|
|
public string Answer { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("sort_order")]
|
|
public int SortOrder { get; set; }
|
|
}
|