Skip to content

Commit 3053a66

Browse files
committed
refactor(basicInfo): 역할 ID 인자를 제거하여 메소드 시그니처 개선
- VolunteerBasicInfoRequestDto와 CenterBasicInfoRequestDto를 업데이트하는 메소드에서 roleId 파라미터 삭제
1 parent 469884f commit 3053a66

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/somemore/user/service/UpdateBasicInfoService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ public class UpdateBasicInfoService implements UpdateBasicInfoUseCase {
2929
private final NEWCenterQueryUseCase centerQueryUseCase;
3030

3131
@Override
32-
public void update(UUID userId, UUID roleId, VolunteerBasicInfoRequestDto volunteerBasicInfoRequestDto) {
32+
public void update(UUID userId, VolunteerBasicInfoRequestDto volunteerBasicInfoRequestDto) {
3333
updateCommonAttribute(userId, volunteerBasicInfoRequestDto.commonBasicInfo());
3434
updateVolunteerAttribute(userId, volunteerBasicInfoRequestDto);
3535
}
3636

3737
@Override
38-
public void update(UUID userId, UUID roleId, CenterBasicInfoRequestDto centerBasicInfoRequestDto) {
38+
public void update(UUID userId, CenterBasicInfoRequestDto centerBasicInfoRequestDto) {
3939
updateCommonAttribute(userId, centerBasicInfoRequestDto.commonBasicInfo());
4040
updateCenterAttribute(userId, centerBasicInfoRequestDto);
4141
}

src/main/java/com/somemore/user/usecase/UpdateBasicInfoUseCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public interface UpdateBasicInfoUseCase {
99

10-
void update(UUID userId, UUID roleId, VolunteerBasicInfoRequestDto volunteerBasicInfoRequestDto);
10+
void update(UUID userId, VolunteerBasicInfoRequestDto volunteerBasicInfoRequestDto);
1111

12-
void update(UUID userId, UUID roleId, CenterBasicInfoRequestDto centerBasicInfoRequestDto);
12+
void update(UUID userId, CenterBasicInfoRequestDto centerBasicInfoRequestDto);
1313
}

0 commit comments

Comments
 (0)