-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 셀프 소개글 페이징 조회 관련 메서드 하나로 통합 * test: 셀프 소개글 api 수정으로 인한 테스트 수 * docs: 셀프 소개글 api 수정으로 인한 문서 수정 * refactor: 취미 페이징 조회 시 조회된 취미 id도 반환하도록 수 * test: 취미 페이징 api 수정으로 인한 테스트 수정 * refactor: 스타일 페이징 조회 시 조회된 스타일의 id 정보도 반환하도록 변 * test: 스타일 페이징 api 변경으로 인한 테스트 수정 * test: 페이징 조회 메서드에서 사용하는 변수명 변경 * refactor: nice 인증으로 진행하는 로그인 기능 개발 전 사용할 테스트용 로그인 구현 * refactor: MemberAuthService 어노테이션 순서 변경 * test: 공백 제거
- Loading branch information
1 parent
47bfd1d
commit 308576b
Showing
52 changed files
with
493 additions
and
498 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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/atwoz/member/application/auth/dto/TestLoginRequest.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,7 @@ | ||
package com.atwoz.member.application.auth.dto; | ||
|
||
//TODO 잠깐 테스트 용도로 로그인을 허용하기 위해 만든 dto입니다. 나중에 삭제해야합니다. | ||
public record TestLoginRequest( | ||
String phoneNumber | ||
) { | ||
} |
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
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
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
10 changes: 0 additions & 10 deletions
10
src/main/java/com/atwoz/member/application/selfintro/dto/CityRequest.java
This file was deleted.
Oops, something went wrong.
42 changes: 25 additions & 17 deletions
42
src/main/java/com/atwoz/member/application/selfintro/dto/SelfIntroFilterRequest.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 |
---|---|---|
@@ -1,29 +1,37 @@ | ||
package com.atwoz.member.application.selfintro.dto; | ||
|
||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public record SelfIntroFilterRequest( | ||
|
||
@NotNull(message = "최소 나이를 입력해주세요") | ||
Integer minAge, | ||
|
||
@NotNull(message = "최대 나이를 입력해주세요") | ||
Integer maxAge, | ||
|
||
@NotNull(message = "성별을 선택해주세요") | ||
Boolean isOnlyOppositeGender, | ||
|
||
@Valid | ||
@NotEmpty(message = "선호 지역을 하나 이상 입력해주세요.") | ||
List<CityRequest> cityRequests | ||
List<String> cities | ||
) { | ||
|
||
public List<String> getCities() { | ||
return cityRequests.stream() | ||
.map(CityRequest::city) | ||
.toList(); | ||
public SelfIntroFilterRequest( | ||
final Integer minAge, | ||
final Integer maxAge, | ||
final Boolean isOnlyOppositeGender, | ||
final List<String> cities | ||
) { | ||
this.minAge = minAge; | ||
this.maxAge = maxAge; | ||
this.isOnlyOppositeGender = isOnlyOppositeGender; | ||
this.cities = ensureCities(cities); | ||
} | ||
|
||
private List<String> ensureCities(final List<String> cities) { | ||
if (isInvalidCase(cities)) { | ||
return Collections.emptyList(); | ||
} | ||
return cities; | ||
} | ||
|
||
private boolean isInvalidCase(final List<String> cities) { | ||
return cities == null || | ||
cities.stream() | ||
.allMatch(city -> city == null || city.isBlank()); | ||
} | ||
} |
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
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
Oops, something went wrong.