Compare commits

..

1 Commits

Author SHA1 Message Date
d2d2b52898 feat(manga): add malId to manga details DTO 2025-12-14 16:18:59 -03:00

View File

@ -14,6 +14,7 @@ import java.util.List;
public record MangaDTO(
@NotNull Long id,
@NotNull Long malId,
@NotBlank String title,
String coverImageKey,
String status,
@ -32,6 +33,7 @@ public record MangaDTO(
public static MangaDTO from(Manga manga, Boolean favorite, Boolean following) {
return new MangaDTO(
manga.getId(),
manga.getMalId(),
manga.getTitle(),
isNull(manga.getCoverImage()) ? null : manga.getCoverImage().getFileKey(),
manga.getStatus(),