Fix home page design.
This commit is contained in:
@@ -5,7 +5,7 @@ import java.util.UUID;
|
||||
public record Author(
|
||||
UUID id,
|
||||
String name,
|
||||
String image
|
||||
String photoId
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public record AuthorDto(
|
||||
this(
|
||||
author.id(),
|
||||
author.name(),
|
||||
author.image()
|
||||
author.photoId()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,17 +24,17 @@ public class AuthorEntity {
|
||||
private UUID id;
|
||||
@Column(nullable = false)
|
||||
private String pseudo;
|
||||
// private String illustrationId;
|
||||
private String photoId;
|
||||
|
||||
public AuthorEntity(Author author) {
|
||||
this(
|
||||
author.id(),
|
||||
author.name()
|
||||
// author.illustrationId()
|
||||
author.name(),
|
||||
author.photoId()
|
||||
);
|
||||
}
|
||||
|
||||
public Author toDomain() {
|
||||
return new Author(id, pseudo, "image");
|
||||
return new Author(id, pseudo, photoId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user