mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 11:58:19 +02:00
Search use MinimalManga
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Schema.MangaContext;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace API.Controllers.DTOs;
|
||||
|
||||
public sealed record MinimalManga(string Key, string Name, string Description, MangaReleaseStatus ReleaseStatus);
|
||||
public sealed record MinimalManga(string Key, string Name, string Description, MangaReleaseStatus ReleaseStatus, IEnumerable<MangaConnectorId<Manga>>? MangaConnectorIds = null)
|
||||
{
|
||||
[Required] [StringLength(TokenGen.MaximumLength, MinimumLength = TokenGen.MinimumLength)]
|
||||
public string Key { get; init; } = Key;
|
||||
[Required]
|
||||
[JsonRequired]
|
||||
public string Name { get; init; } = Name;
|
||||
[Required]
|
||||
[JsonRequired]
|
||||
public string Description { get; init; } = Description;
|
||||
[Required]
|
||||
[JsonRequired]
|
||||
public MangaReleaseStatus ReleaseStatus { get; init; } = ReleaseStatus;
|
||||
public IEnumerable<MangaConnectorId<Manga>>? MangaConnectorIds { get; init; } = MangaConnectorIds;
|
||||
}
|
Reference in New Issue
Block a user