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

Refactor/gabang2/code refactoring #155

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

Conversation

rrosiee
Copy link
Member

@rrosiee rrosiee commented Oct 4, 2023

🌲 Summary

level&member코드 클린코드로 변경... 하도록 노력했습니다.

☘️ Issue number and link

#65

🌵 To Reviewers

보고 리뷰 꼭 부탁드릴게요 !

@rrosiee rrosiee requested a review from KarmaPol October 4, 2023 14:43
@rrosiee rrosiee changed the base branch from master to develop October 4, 2023 14:43
Copy link
Member

@KarmaPol KarmaPol left a comment

Choose a reason for hiding this comment

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

코드 잘 읽었습니다!
고생하셨어요

@@ -9,7 +9,7 @@
import java.util.Optional;

public interface FeedRepository extends JpaRepository<Feed, Long> {
List<Feed> findFeedByMemberAndDelYn(Member member, Boolean delYn);
List<Feed> findFeedByMemberAndDelYnAndFulfillYn(Member member, Boolean delYn, Boolean fulfillYn);

Copy link
Member

Choose a reason for hiding this comment

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

FulfillYn도 고려해야하네요
수정해주셔서 감사합니다

* Level 변경시 모든 멤버의 레벨에 반영
*/
private void allMemberLevelChange(){
memberRepository.findAll().forEach(member -> member.setLevel(getMemberLevel(member.getExp())));
Copy link
Member

Choose a reason for hiding this comment

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

훨씬 깔끔하네요 👍

@@ -29,6 +29,8 @@ public class ImageService {

public String updateImage(MultipartFile file, String entityName, String columnName) {

if (file.isEmpty()) return null;
Copy link
Member

Choose a reason for hiding this comment

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

파일 유효성 체크를 이미지서비스에 빼셨네요
중복 많이 줄인 것 같습니다!

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.

2 participants