Colorscape Love (#3326)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
b44f89d1e8
commit
a847468a6c
42 changed files with 1009 additions and 429 deletions
16
API/DTOs/CoverDb/CoverDbAuthor.cs
Normal file
16
API/DTOs/CoverDb/CoverDbAuthor.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace API.DTOs.CoverDb;
|
||||
|
||||
public class CoverDbAuthor
|
||||
{
|
||||
[YamlMember(Alias = "name", ApplyNamingConventions = false)]
|
||||
public string Name { get; set; }
|
||||
[YamlMember(Alias = "aliases", ApplyNamingConventions = false)]
|
||||
public List<string> Aliases { get; set; } = new List<string>();
|
||||
[YamlMember(Alias = "ids", ApplyNamingConventions = false)]
|
||||
public CoverDbPersonIds Ids { get; set; }
|
||||
[YamlMember(Alias = "image_path", ApplyNamingConventions = false)]
|
||||
public string ImagePath { get; set; }
|
||||
}
|
10
API/DTOs/CoverDb/CoverDbPeople.cs
Normal file
10
API/DTOs/CoverDb/CoverDbPeople.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace API.DTOs.CoverDb;
|
||||
|
||||
public class CoverDbPeople
|
||||
{
|
||||
[YamlMember(Alias = "people", ApplyNamingConventions = false)]
|
||||
public List<CoverDbAuthor> People { get; set; } = new List<CoverDbAuthor>();
|
||||
}
|
20
API/DTOs/CoverDb/CoverDbPersonIds.cs
Normal file
20
API/DTOs/CoverDb/CoverDbPersonIds.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace API.DTOs.CoverDb;
|
||||
#nullable enable
|
||||
|
||||
public class CoverDbPersonIds
|
||||
{
|
||||
[YamlMember(Alias = "hardcover_id", ApplyNamingConventions = false)]
|
||||
public string? HardcoverId { get; set; } = null;
|
||||
[YamlMember(Alias = "amazon_id", ApplyNamingConventions = false)]
|
||||
public string? AmazonId { get; set; } = null;
|
||||
[YamlMember(Alias = "metron_id", ApplyNamingConventions = false)]
|
||||
public string? MetronId { get; set; } = null;
|
||||
[YamlMember(Alias = "comicvine_id", ApplyNamingConventions = false)]
|
||||
public string? ComicVineId { get; set; } = null;
|
||||
[YamlMember(Alias = "anilist_id", ApplyNamingConventions = false)]
|
||||
public string? AnilistId { get; set; } = null;
|
||||
[YamlMember(Alias = "mal_id", ApplyNamingConventions = false)]
|
||||
public string? MALId { get; set; } = null;
|
||||
}
|
|
@ -8,6 +8,8 @@ public class UpdatePersonDto
|
|||
public int Id { get; init; }
|
||||
[Required]
|
||||
public bool CoverImageLocked { get; set; }
|
||||
[Required]
|
||||
public string Name {get; set;}
|
||||
public string? Description { get; set; }
|
||||
|
||||
public int? AniListId { get; set; }
|
||||
|
|
|
@ -43,4 +43,6 @@ public class ReadingListItemDto
|
|||
/// The chapter summary
|
||||
/// </summary>
|
||||
public string? Summary { get; set; }
|
||||
|
||||
public bool IsSpecial { get; set; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue