Skip to content

Commit

Permalink
Refactor: rename requestId to memberId
Browse files Browse the repository at this point in the history
createMember에서 join의 반환값 변수명을 명확하게 수정함.
Github issue #3
  • Loading branch information
honeyl3ee committed Oct 25, 2023
1 parent 99e490c commit 8ebcede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
import beforespring.socialfeed.member.controller.dto.CreateMemberDto;
import beforespring.socialfeed.member.service.MemberService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
Expand All @@ -18,14 +16,14 @@ public class MemberController {
private final MemberService memberService;

/**
*멤버 생성. 가입 요청과 가입 승인 서비스를 호출합니다.
* 멤버 생성. 가입 요청과 가입 승인 서비스를 호출합니다.
*
* @param request 멤버 생성을 위한 dto
* @return 생성된 멤버의 아이디를 반환합니다.
*/
@PostMapping("/api/member/new")
public CreateMemberDto.Response createMember(@RequestBody @Valid CreateMemberDto.Request request) {
Long requestId = memberService.join(request);
return new CreateMemberDto.Response(requestId);
Long memberId = memberService.join(request);
return new CreateMemberDto.Response(memberId);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package beforespring.socialfeed.member.domain;public class PasswordValidatorImpl {
}

0 comments on commit 8ebcede

Please sign in to comment.