forked from ddrilling/AsbCloudServer
38 lines
904 B
C#
38 lines
904 B
C#
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
|
||
|
namespace AsbCloudApp.Data.Manuals;
|
||
|
|
||
|
/// <summary>
|
||
|
/// DTO папки для хранения инструкций
|
||
|
/// </summary>
|
||
|
public class ManualFolderDto : IId
|
||
|
{
|
||
|
/// <inheritdoc/>
|
||
|
public int Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Название
|
||
|
/// </summary>
|
||
|
public string Name { get; set; } = null!;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id родительской папки
|
||
|
/// </summary>
|
||
|
public int? IdParent { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id категории
|
||
|
/// </summary>
|
||
|
public int IdCategory { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Вложенные папки
|
||
|
/// </summary>
|
||
|
public IEnumerable<ManualFolderDto> Children { get; set; } = Enumerable.Empty<ManualFolderDto>();
|
||
|
|
||
|
/// <summary>
|
||
|
/// Хранимые инструкции
|
||
|
/// </summary>
|
||
|
public IEnumerable<ManualDto> Manuals { get; set; } = Enumerable.Empty<ManualDto>();
|
||
|
}
|