[FA-misc] Switches to using DTOs, updates frontend with details and reader page, updates novel import to be an upsert

This commit is contained in:
gamer147
2025-12-08 18:30:00 -05:00
parent c9d93a4e55
commit 81e4e88ad4
48 changed files with 3298 additions and 329 deletions

View File

@@ -0,0 +1,19 @@
using FictionArchive.Common.Enums;
using FictionArchive.Service.TranslationService.Models.Enums;
using NodaTime;
namespace FictionArchive.Service.TranslationService.Models.DTOs;
public class TranslationRequestDto
{
public Guid Id { get; init; }
public Instant CreatedTime { get; init; }
public Instant LastUpdatedTime { get; init; }
public required string OriginalText { get; init; }
public string? TranslatedText { get; init; }
public Language From { get; init; }
public Language To { get; init; }
public required string TranslationEngineKey { get; init; }
public TranslationRequestStatus Status { get; init; }
public uint BilledCharacterCount { get; init; }
}