-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 카카오 연결 끊기 기능 추가 * feat: 탈퇴 기능 서비스 추가 * feat: oauth id에 대한 unique 속성 제거 * refactor: 회원과 사용자라는 용어 통일 * feat: 이름이 이미 존재하는지에 대한 확인 쿼리 메서드 추가 * feat: 랜덤 이름을 생성하는 util 클래스 추가 * feat: 재가입 시 이름에 대한 중복 문제 해결을 위한 로직 추가 * feat: 탈퇴한 회원의 이름을 가져오는 경우에 대한 로직 추가 * feat: 탈퇴 컨트롤러 기능 추가 * feat: 예외처리 추가 * test: 테스트 실패 문제 해결 * refactor: flyway 버전 수정 * refactor: 탈퇴한 사용자 이름 변경 로직 위치 수정 * docs: 문서 최신화 * refactor: 예외 메시지 클래스명 수정 * refactor: do-while문을 while문으로 수정 * refactor: 탈퇴 시 로직 순서 변경 * style: 해결된 todo 제거 * ci: flyway 버전 수정 * ci: 충돌 문제 해결 * refactor: 이미지가 null인 경우에 대한 예외처리 추가 * refactor: util 클래스에 final 추가 * fix: 경매 이미지 url 경로 누락 문제 해결
- Loading branch information
Showing
56 changed files
with
793 additions
and
292 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
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
8 changes: 8 additions & 0 deletions
8
...java/com/ddang/ddang/authentication/application/exception/InvalidWithdrawalException.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,8 @@ | ||
package com.ddang.ddang.authentication.application.exception; | ||
|
||
public class InvalidWithdrawalException extends IllegalArgumentException { | ||
|
||
public InvalidWithdrawalException(final String message) { | ||
super(message); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ng/src/main/java/com/ddang/ddang/authentication/application/util/RandomNameGenerator.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,24 @@ | ||
package com.ddang.ddang.authentication.application.util; | ||
|
||
import java.util.Random; | ||
|
||
public class RandomNameGenerator { | ||
|
||
private static final int NAME_LENGTH = 10; | ||
|
||
private static final Random random = new Random(); | ||
|
||
private RandomNameGenerator() { | ||
} | ||
|
||
public static String generate() { | ||
StringBuilder name = new StringBuilder(); | ||
|
||
for (int i = 0; i < NAME_LENGTH; i++) { | ||
int digit = random.nextInt(10); | ||
name.append(digit); | ||
} | ||
|
||
return name.toString(); | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
.../main/java/com/ddang/ddang/authentication/presentation/dto/request/WithdrawalRequest.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,6 @@ | ||
package com.ddang.ddang.authentication.presentation.dto.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
public record WithdrawalRequest(@NotEmpty(message = "refreshToken을 입력해주세요.") String refreshToken) { | ||
} |
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
8 changes: 5 additions & 3 deletions
8
backend/ddang/src/main/java/com/ddang/ddang/chat/application/dto/ReadUserInChatRoomDto.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,15 +1,17 @@ | ||
package com.ddang.ddang.chat.application.dto; | ||
|
||
import com.ddang.ddang.image.application.util.ImageIdProcessor; | ||
import com.ddang.ddang.user.domain.User; | ||
|
||
public record ReadUserInChatRoomDto(Long id, String name, Long profileImageId, double reliability) { | ||
public record ReadUserInChatRoomDto(Long id, String name, Long profileImageId, double reliability, boolean isDeleted) { | ||
|
||
public static ReadUserInChatRoomDto from(final User user) { | ||
return new ReadUserInChatRoomDto( | ||
user.getId(), | ||
user.getName(), | ||
user.getProfileImage().getId(), | ||
user.getReliability() | ||
ImageIdProcessor.process(user.getProfileImage()), | ||
user.getReliability(), | ||
user.isDeleted() | ||
); | ||
} | ||
} |
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.