-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [#18] Feat: 검색 요청 DTO 추가 SearchQueryRequestDto 추가. * [#18] Refactor: 쿼리 파라미터를 SearchQueryRequestDto로 매핑 @ModelAttribute를 사용해 검색 시 들어오는 쿼리 파라미터를 Dto로 바로 매핑. 이전에 Map<String, String>으로 받아 자료형 변환하던 코드를 삭제함. * [#18] Feat: 리퀘스트 DTO 추가에 따른 SearchQueryResponseDto 변경 of() 메서드를 추가해 서비스에서 Accommodation을 응답 DTO로 변환할 수 있도록 함.
- Loading branch information
Showing
5 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
be/src/main/java/kr/codesquad/airbnb/dto/SearchQueryRequestDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package kr.codesquad.airbnb.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDate; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
public class SearchQueryRequestDto { | ||
private LocalDate checkinDate; | ||
private LocalDate checkoutDate; | ||
private int minimumPrice; | ||
private int maximumPrice; | ||
private int adultCount; | ||
private int childCount; | ||
private int infantCount; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters