-
Notifications
You must be signed in to change notification settings - Fork 0
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
#334 냉장고 추가 및 정보 수정 API 리팩토링 #343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
복잡한 냉장고 처리하느라 고생했습니답
네이밍이랑 함수 세세하게 만들어줘서 바로 잘 이해할 수 있었어용 체고야.
public void changeRoleToOwner(){ | ||
this.role = FridgeRole.OWNER; | ||
} | ||
public void changeFridgeMember(User user){ | ||
|
||
public void changeRoleToMember(){ | ||
this.role = FridgeRole.MEMBER; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네이밍 깔쌈하네욥.
src/main/java/com/example/icebutler_server/fridge/service/FridgeServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/com/example/icebutler_server/fridge/service/FridgeServiceImpl.java
Outdated
Show resolved
Hide resolved
private void updateFridgeUsers(EditFridgeReq editFridgeReq, Fridge fridge) { | ||
List<User> currentMembers = this.fridgeUserRepository.findByFridgeAndRoleAndIsEnable(fridge, FridgeRole.MEMBER, true).stream() | ||
.map(FridgeUser::getUser).collect(Collectors.toList()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎👍
📍 이슈 번호
🛠️ 작업 내용
예시를 추가하고, 변수 이름은 중복되길래 지웠습니다. 클래스 이름은 한국어로 지정했어요.
IceButler_Server/src/main/java/com/example/icebutler_server/fridge/dto/request/AddFridgeReq.java
Lines 14 to 23 in 14f6800
🎸 기타 사항