[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:
@@ -0,0 +1,18 @@
|
||||
namespace FictionArchive.Service.NovelService.Models.DTOs;
|
||||
|
||||
public class ChapterReaderDto : BaseDto<uint>
|
||||
{
|
||||
public uint Revision { get; init; }
|
||||
public uint Order { get; init; }
|
||||
public string? Url { get; init; }
|
||||
public required string Name { get; init; }
|
||||
public required string Body { get; init; }
|
||||
public required List<ImageDto> Images { get; init; }
|
||||
|
||||
// Navigation context
|
||||
public uint NovelId { get; init; }
|
||||
public required string NovelName { get; init; }
|
||||
public int TotalChapters { get; init; }
|
||||
public uint? PrevChapterOrder { get; init; }
|
||||
public uint? NextChapterOrder { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user