Skip to content

Conversation

@jbh010204
Copy link
Member

✨ 구현한 기능

  • SessionUtil 클래스에서 로그인 여부와 유저의 Role을 확인하는 메서드를 생성하여, 다른 클래스에서도 사용할 수 있게 만들었습니다.

📢 논의하고 싶은 내용

  • 해당 클래스가 DB에 의존성을 가지고있어 단순 유틸리티 클래스라고 명칭을 하기에는 애매하다고 생각해서, 다른 분들은 어떻게 생각하시나요

🎸 기타

@jbh010204 jbh010204 requested review from wlgns12370 and wodydl0 May 12, 2025 07:17
@jbh010204 jbh010204 self-assigned this May 12, 2025
Copy link
Member

@wlgns12370 wlgns12370 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO 주석 하나만 표시했는 데 있는 것 모두 지워주시면 좋을 것 같아요!


private final MemberRepository memberRepository;

// TODO: 로그인된 유저가 멘토인지 확인
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO지워주세요!

Copy link
Contributor

@wodydl0 wodydl0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

public boolean isMenteeRole(String role) {
return "MENTEE".equals(role);
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제 생각에도 이 정도는 유틸클래스의 기능을 넘어선거 같습니다. 서비스 책임 부분을 분리하는게 어떨까요?

@wlgns12370 wlgns12370 merged commit dc46926 into develop May 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants