diff --git a/mashup-admin/src/main/java/kr/mashup/branding/ui/adminmember/AdminMemberController.java b/mashup-admin/src/main/java/kr/mashup/branding/ui/adminmember/AdminMemberController.java index b194d25d..35718493 100644 --- a/mashup-admin/src/main/java/kr/mashup/branding/ui/adminmember/AdminMemberController.java +++ b/mashup-admin/src/main/java/kr/mashup/branding/ui/adminmember/AdminMemberController.java @@ -65,7 +65,7 @@ public ApiResponse deleteAdminMembers( return ApiResponse.success(); } - @PostMapping("/{adminId}/password/change") + @PostMapping("/password/change") public ApiResponse changePassword( @ApiIgnore @ModelAttribute("adminId") Long adminMemberId, @RequestBody AdminPasswordChangeRequest request @@ -79,9 +79,9 @@ public ApiResponse changePassword( @ApiOperation("어드민 멤버 리스트 조회") @GetMapping public ApiResponse> readAdminMembers() { - List data = adminMemberFacadeService.readAdminMembers(); + final List adminMemberVos = adminMemberFacadeService.readAdminMembers(); - return ApiResponse.success(data.stream().map(AdminMemberResponse::from).collect(Collectors.toList())); + return ApiResponse.success(adminMemberVos.stream().map(AdminMemberResponse::from).collect(Collectors.toList())); } /** 어드민 멤버 생성 */ @@ -89,8 +89,8 @@ public ApiResponse> readAdminMembers() { @PreAuthorize("hasAnyAuthority('MASHUP_LEADER', 'MASHUP_SUBLEADER')") @PostMapping public ApiResponse createAdminMember(@RequestBody AdminMemberSignUpCommand signUpCommand) { - AdminMemberVo data = adminMemberFacadeService.createAdminMember(signUpCommand); + final AdminMemberVo adminMemberVo = adminMemberFacadeService.createAdminMember(signUpCommand); - return ApiResponse.success(AdminMemberResponse.from(data)); + return ApiResponse.success(AdminMemberResponse.from(adminMemberVo)); } }