Skip to content

Commit

Permalink
feat: add createdAt in PhotoResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Aug 29, 2024
1 parent 2e53d6f commit 91054af
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public record PhotoResponse(
BrandType brand,

@Schema(description = "앨범 ID", example = "test_album_id")
String albumId
String albumId,

@Schema(description = "앨범 생성일")
String createdAt
) {
public static PhotoResponse fromEntity(
PhotoEntity entity
Expand All @@ -25,7 +28,8 @@ public static PhotoResponse fromEntity(
entity.getPhotoId(),
entity.getPhotoUrl(),
entity.getBrand(),
entity.getAlbumId()
entity.getAlbumId(),
entity.getCreatedAt().toString()
);
}
}

0 comments on commit 91054af

Please sign in to comment.