using MaBibli.Shared.Entites;
namespace MaBibli.Shared.Dtos;
///
/// Un livre tel qu'exposé par l'API. Volontairement sans la collection Prets :
/// les prêts sont la phase 4.
///
public record LivreDto
{
public required int Id { get; init; }
public string? Isbn { get; init; }
public required string Titre { get; init; }
public string? Auteur { get; init; }
public string? Editeur { get; init; }
public required Format Format { get; init; }
public required Statut Statut { get; init; }
public string? CoverUrl { get; init; }
public required DateTime DateAjout { get; init; }
///
/// Qui a saisi le livre. Information d'affichage, pas une frontière :
/// la bibliothèque est commune et aucune lecture ne filtre sur ce champ.
///
public string? AjoutePar { get; init; }
}