Skip to content

Commit

Permalink
update: 개별 사진 조회 API에 caption 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
voka committed Nov 1, 2023
1 parent 6e4d57b commit 56adefc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package mmm.emopic.app.domain.photo.dto.response;

import lombok.Builder;
import lombok.Getter;
import mmm.emopic.app.domain.category.Category;
import mmm.emopic.app.domain.category.PhotoCategory;
Expand All @@ -24,6 +25,8 @@ public class PhotoInformationResponse {

private String signedUrl;

private String caption;

private String uploadDateTime;

private Long diaryId;
Expand All @@ -40,6 +43,7 @@ public PhotoInformationResponse(Photo photo, Diary diary, List<Category> categor
this.photoId = photo.getId();
this.signedUrl = photo.getSignedUrl();
this.diaryId = diary.getId();
this.caption = photo.getCaption();
Optional<String> optionDiaryContent = Optional.ofNullable(diary.getContent());
if(optionDiaryContent.isPresent()){
this.diaryContent = diary.getContent();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package mmm.emopic.app.domain.photo.dto.response;

import lombok.Getter;
import mmm.emopic.app.domain.category.Category;
import mmm.emopic.app.domain.diary.Diary;
import mmm.emopic.app.domain.emotion.Emotion;
Expand All @@ -13,6 +14,7 @@
import java.util.Optional;
import java.util.stream.Collectors;

@Getter
public class PhotosInformationResponse {
private Long photoId;

Expand Down

0 comments on commit 56adefc

Please sign in to comment.