Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5 - rank system #6

Open
wants to merge 32 commits into
base: develop
Choose a base branch
from
Open

5 - rank system #6

wants to merge 32 commits into from

Conversation

Kimhanju0210
Copy link
Collaborator

@Kimhanju0210 Kimhanju0210 commented Nov 11, 2024

📌 개요

Redis를 사용하여 Rank 기능 구현

✨ 작업 내용

  • Rank
  • Redis

@Kimhanju0210 Kimhanju0210 self-assigned this Nov 11, 2024
@Kimhanju0210 Kimhanju0210 linked an issue Nov 11, 2024 that may be closed by this pull request
Copy link
Member

Choose a reason for hiding this comment

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

redis 부분은 제가 만들어 놨는데 또 만드신 이유가 있나요????????

Copy link
Collaborator Author

@Kimhanju0210 Kimhanju0210 Nov 14, 2024

Choose a reason for hiding this comment

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

35e0844
수정했습니다!

this.rankService = rankService;
this.userService = userService;
this.jwtService = jwtService;
}
Copy link
Member

Choose a reason for hiding this comment

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

@Autowired를 쓰는거 보다 클래스에 @requiredargsconstructor로 생성자 생성 할 수 있습니다
수정해주세요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

6e642a9

5854644
수정했습니다!

import com.example.domaserver.domain.user.entity.User;
import java.util.List;

public interface RankService {
Copy link
Member

Choose a reason for hiding this comment

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

service는 기능을 분리해서 구현해주세요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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



@ServiceWithTransaction
@ServiceWithReadOnlyTransactional
Copy link
Member

Choose a reason for hiding this comment

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

get service는 ReadOnly 씁니다. 두개 붙일 필요 없이 ReadOnly만 남겨주세요

Copy link
Collaborator Author

@Kimhanju0210 Kimhanju0210 Nov 19, 2024

Choose a reason for hiding this comment

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

7e202be

수정했습니다!


public GetRankingServiceImpl(RedisTemplate redisTemplate) {
this.redisTemplate = redisTemplate;
}
Copy link
Member

Choose a reason for hiding this comment

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

생성자는 코드 스타일에 맞춰서 어노테이션을 사용해서 만들어주세요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

7e202be
593a11e
7581978

수정했습니다!



@ServiceWithTransaction
@ServiceWithReadOnlyTransactional
Copy link
Member

Choose a reason for hiding this comment

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

get service는 ReadOnly 씁니다. 두개 붙일 필요 없이 ReadOnly만 남겨주세요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

593a11e

수정했습니다!

Copy link
Member

@yusung103 yusung103 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다

@Override
public User findByUsername(String username) {
return userRepository.findByUsername(username)
.orElseThrow(() -> new UsernameNotFoundException("User not found with username: " + username));
Copy link
Member

Choose a reason for hiding this comment

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

custom exception을 만들어서 예외처리를 해보는건 어떨까요

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.

Rank system
2 participants