36 lines
927 B
C#
36 lines
927 B
C#
|
|
// backend/src/Titulares.Api/Models/Titular.cs
|
||
|
|
|
||
|
|
namespace Titulares.Api.Models;
|
||
|
|
|
||
|
|
public class Titular
|
||
|
|
{
|
||
|
|
public int Id { get; set; }
|
||
|
|
public required string Texto { get; set; }
|
||
|
|
public string? UrlFuente { get; set; }
|
||
|
|
public bool ModificadoPorUsuario { get; set; }
|
||
|
|
public bool EsEntradaManual { get; set; }
|
||
|
|
public int OrdenVisual { get; set; }
|
||
|
|
public DateTime FechaCreacion { get; set; }
|
||
|
|
public string? Encabezado { get; set; }
|
||
|
|
public string? Tipo { get; set; }
|
||
|
|
public string? Fuente { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
// DTO (Data Transfer Object) para la creación de un titular manual
|
||
|
|
public class CrearTitularDto
|
||
|
|
{
|
||
|
|
public required string Texto { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
// DTO para la actualización de un titular
|
||
|
|
public class ActualizarTitularDto
|
||
|
|
{
|
||
|
|
public required string Texto { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
// DTO para el reordenamiento
|
||
|
|
public class ReordenarTitularDto
|
||
|
|
{
|
||
|
|
public int Id { get; set; }
|
||
|
|
public int NuevoOrden { get; set; }
|
||
|
|
}
|