Fixed a bug in ScanLibrary that caused duplicated Volumes. Implemented APIs for navigating down to Volume for webui.

This is rough code and needs to be polished and refactored.
This commit is contained in:
Joseph Milazzo 2021-01-01 14:04:31 -06:00
parent 380c3e7b3c
commit c429c50ba2
18 changed files with 709 additions and 58 deletions

View file

@ -5,6 +5,7 @@ namespace API.DTOs
{
public class LibraryDto
{
public int Id { get; init; }
public string Name { get; set; }
public string CoverImage { get; set; }
public LibraryType Type { get; set; }

13
API/DTOs/SeriesDto.cs Normal file
View file

@ -0,0 +1,13 @@
using System.Collections.Generic;
namespace API.DTOs
{
public class SeriesDto
{
public int Id { get; set; }
public string Name { get; set; }
public string OriginalName { get; set; }
public string SortName { get; set; }
public string Summary { get; set; }
}
}

12
API/DTOs/VolumeDto.cs Normal file
View file

@ -0,0 +1,12 @@
using System.Collections.Generic;
namespace API.DTOs
{
public class VolumeDto
{
public int Id { get; set; }
public string Number { get; set; }
public string CoverImage { get; set; }
public ICollection<string> Files { get; set; }
}
}