Spaces:
Running
Running
File size: 1,224 Bytes
6d07d79 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | using System;
namespace FlowAPI.Application.DTOs.Template
{
/// <summary>
/// A user template. Content is an opaque JSON document produced by the web client:
/// { "version": 2, "nodes": [...], "edges": [...] } in React Flow format.
/// </summary>
public class TemplateDto
{
public Guid Id { get; set; }
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string Category { get; set; } = string.Empty;
public string Icon { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; }
}
public class CreateTemplateDto
{
public string Title { get; set; } = string.Empty;
public string? Description { get; set; }
public string? Category { get; set; }
public string? Icon { get; set; }
public string Content { get; set; } = string.Empty;
}
public class UpdateTemplateDto
{
public string? Title { get; set; }
public string? Description { get; set; }
public string? Category { get; set; }
public string? Icon { get; set; }
}
}
|