Skip to content

Commit

Permalink
refactor: 사진 관련 응답을 ImageIdentifier로 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
vectorch9 committed Oct 29, 2023
1 parent 744976c commit 461317f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/java/daybyquest/post/dto/response/PostResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ public class PostResponse {

private boolean liked;

private List<String> images;
private List<String> imageIdentifiers;

public PostResponse(final ProfileResponse author, final Long id, final String content,
final LocalDateTime updatedAt, final boolean liked,
final List<String> images) {
final List<String> imageIdentifiers) {
this.author = author;
this.id = id;
this.content = content;
this.updatedAt = updatedAt;
this.liked = liked;
this.images = images;
this.imageIdentifiers = imageIdentifiers;
}

public static PostResponse of(final PostData postData, final Profile profile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ public class ProfileResponse {

private String name;

private String imageUrl;
private String imageIdentifier;

private Long postCount;

private boolean following;

private boolean blocking;

private ProfileResponse(final String username, final String name, final String imageUrl,
private ProfileResponse(final String username, final String name, final String imageIdentifier,
final Long postCount,
final boolean following, final boolean blocking) {
this.username = username;
this.name = name;
this.imageUrl = imageUrl;
this.imageIdentifier = imageIdentifier;
this.postCount = postCount;
this.following = following;
this.blocking = blocking;
Expand Down

0 comments on commit 461317f

Please sign in to comment.