Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📍 이슈 번호
🛠️ 작업 내용
1. ExceptionAdvice.java
@RestControllerAdvice
추가어노테이션 누락되어 있어서 추가했습니다. f906c54
2. 실행 오류 수정
develop 브랜치 실행했더니 오류가 뜨길래 임의로 해결했습니다. 참고링크 fd32abe
3. 유저 검증 로직 추가
로그아웃 / 회원탈퇴 확인 (Redis에 토큰 있는지 유무 확인)
IceButler_Server/src/main/java/com/example/icebutler_server/global/util/TokenUtils.java
Lines 262 to 264 in 078fa5b
존재유저 / 중지유저 확인
IceButler_Server/src/main/java/com/example/icebutler_server/user/service/UserServiceImpl.java
Lines 181 to 184 in 078fa5b
4. LoginResolver return값 UserId(Long type)로 변경
기존 LoginStatus 클래스를 통해 userId를 가져오는 방식에서 userId로만 반환하는 로직으로 변경했습니다.
🎸 기타 사항
1. LoginResolver에서 Service 상속과 Repository 상속
IceButler_Server/src/main/java/com/example/icebutler_server/global/resolver/LoginResolver.java
Lines 71 to 75 in 078fa5b
resolver가 실행되는 시점이 controller와 동일해서, userService를 거쳐 userRepository에 접근하는 것으로 생각했는데 옳은 방법인지 한 번만 같이 봐주세요 !
2. LoginResolver return값 UserId(Long type)로 변경
이유: LoginResolver에서 이제 유저 상태까지 점검 -> LoginStatus의 isLogin 컬럼 불필요
이점: 리졸버를 통해 바로 userId 반환 가능, 리졸버에서 isLogin 상태 변경 불필요
추가 작업 : LoginStatus 클래스 삭제 -> controller의 IsLogin 어노테이션 반환값 LoginStatus에서 Long으로 변경
만약 괜찮다면, 해당 브랜치에서 추가 작업 이어서 진행하겠습니다 의견 주세욥 !
IceButler_Server/src/main/java/com/example/icebutler_server/global/resolver/LoginStatus.java
Lines 6 to 18 in 078fa5b