Skip to content

Commit

Permalink
fix: 컨셉 조회 DTO에 conceptId 필드 추가 #32
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Jan 27, 2024
1 parent 2383bc3 commit 63e299e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
import lombok.Builder;

@Builder(access = AccessLevel.PRIVATE)
public record ConceptRetrieveResponse(String mainImageUri, String name, String description, Boolean isNew) {
public record ConceptRetrieveResponse(Long conceptId, String mainImageUri, String name, String description, Boolean isNew) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static ConceptsRetrieveResponse convertEntitiesToDto(List<Concept> concep
String conceptDescription = MessageUtils.getMessage(messageSource,
conceptMessagePrefix + ConceptMessageType.DESCRIPTION.getType());

conceptsResponse.add(new ConceptRetrieveResponse(concept.getMainImageUri(), conceptName, conceptDescription,
conceptsResponse.add(new ConceptRetrieveResponse(concept.getId(), concept.getMainImageUri(), conceptName, conceptDescription,
concept.validateIsNew(now)));
}
return new ConceptsRetrieveResponse(conceptsResponse);
Expand Down

0 comments on commit 63e299e

Please sign in to comment.