New Scanner + People Pages (#3286)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
1ed0eae22d
commit
ba20ad4ecc
142 changed files with 17529 additions and 3038 deletions
16
API/DTOs/Person/BrowsePersonDto.cs
Normal file
16
API/DTOs/Person/BrowsePersonDto.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
namespace API.DTOs;
|
||||
|
||||
/// <summary>
|
||||
/// Used to browse writers and click in to see their series
|
||||
/// </summary>
|
||||
public class BrowsePersonDto : PersonDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of Series this Person is the Writer for
|
||||
/// </summary>
|
||||
public int SeriesCount { get; set; }
|
||||
/// <summary>
|
||||
/// Number or Issues this Person is the Writer for
|
||||
/// </summary>
|
||||
public int IssueCount { get; set; }
|
||||
}
|
37
API/DTOs/Person/PersonDto.cs
Normal file
37
API/DTOs/Person/PersonDto.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
namespace API.DTOs;
|
||||
|
||||
public class PersonDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
public bool CoverImageLocked { get; set; }
|
||||
public string PrimaryColor { get; set; }
|
||||
public string SecondaryColor { get; set; }
|
||||
|
||||
public string? CoverImage { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// ASIN for person
|
||||
/// </summary>
|
||||
/// <remarks>Can be used for Amazon author lookup</remarks>
|
||||
public string? Asin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// https://anilist.co/staff/{AniListId}/
|
||||
/// </summary>
|
||||
/// <remarks>Kavita+ Only</remarks>
|
||||
public int AniListId { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// https://myanimelist.net/people/{MalId}/
|
||||
/// https://myanimelist.net/character/{MalId}/CharacterName
|
||||
/// </summary>
|
||||
/// <remarks>Kavita+ Only</remarks>
|
||||
public long MalId { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// https://hardcover.app/authors/{HardcoverId}
|
||||
/// </summary>
|
||||
/// <remarks>Kavita+ Only</remarks>
|
||||
public string? HardcoverId { get; set; }
|
||||
}
|
17
API/DTOs/Person/UpdatePersonDto.cs
Normal file
17
API/DTOs/Person/UpdatePersonDto.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.DTOs;
|
||||
|
||||
public class UpdatePersonDto
|
||||
{
|
||||
[Required]
|
||||
public int Id { get; init; }
|
||||
[Required]
|
||||
public bool CoverImageLocked { get; set; }
|
||||
public string? Description { get; set; }
|
||||
|
||||
public int? AniListId { get; set; }
|
||||
public long? MalId { get; set; }
|
||||
public string? HardcoverId { get; set; }
|
||||
public string? Asin { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue