Skip to content

Commit

Permalink
fix: add import line
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlee1703 committed Oct 12, 2023
1 parent 1d5b2bb commit 75cccd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
import org.springframework.web.bind.annotation.RestController;
import org.swmaestro.repl.gifthub.auth.dto.MemberDeleteResponseDto;
import org.swmaestro.repl.gifthub.auth.dto.MemberUpdateRequestDto;
import org.swmaestro.repl.gifthub.auth.dto.OAuthTokenDto;
import org.swmaestro.repl.gifthub.auth.entity.Member;
import org.swmaestro.repl.gifthub.auth.service.MemberService;
import org.swmaestro.repl.gifthub.auth.service.OAuthService;
import org.swmaestro.repl.gifthub.auth.type.OAuthPlatform;
import org.swmaestro.repl.gifthub.exception.BusinessException;
import org.swmaestro.repl.gifthub.util.JwtProvider;
Expand Down Expand Up @@ -81,8 +83,8 @@ public ResponseEntity<Message> readMember(HttpServletRequest request, @PathVaria
.data(memberService.read(userId))
.build());
}
@PostMapping("/oauth/{platform}")

@PostMapping("/oauth/{platform}")
@Operation(summary = "OAuth 연동 계정 추가 메서드", description = "사용자의 기존 계정에 OAuth 계정을 추가 연동하기 위한 메서드입니다.\n 파라미터로는 'naver', 'kakao', 'google', 'apple'를 받을 수 있습니다.")
@ApiResponses({
@ApiResponse(responseCode = "200", description = "OAuth 연동 계정 추가 성공"),
Expand All @@ -107,8 +109,8 @@ public ResponseEntity<Message> createOAuthInfo(HttpServletRequest request, @Path
.path(request.getRequestURI())
.build());
}
@DeleteMapping("/oauth/{platform}")

@DeleteMapping("/oauth/{platform}")
@Operation(summary = "OAuth 연동 계정 삭제 메서드", description = "사용자의 기존 계정에 연동된 OAuth 계정을 삭제하기 위한 메서드입니다.\n 파라미터로는 'naver', 'kakao', 'google', 'apple'를 받을 수 있습니다.")
@ApiResponses({
@ApiResponse(responseCode = "200", description = "OAuth 연동 계정 삭제 성공"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.swmaestro.repl.gifthub.auth.dto.MemberReadResponseDto;
import org.swmaestro.repl.gifthub.auth.dto.MemberUpdateRequestDto;
import org.swmaestro.repl.gifthub.auth.dto.MemberUpdateResponseDto;
import org.swmaestro.repl.gifthub.auth.dto.OAuthTokenDto;
import org.swmaestro.repl.gifthub.auth.entity.Member;
import org.swmaestro.repl.gifthub.auth.entity.OAuth;
import org.swmaestro.repl.gifthub.auth.service.MemberService;
Expand Down Expand Up @@ -103,8 +104,8 @@ void readMember() throws Exception {
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk());
}
@Test

@Test
@WithMockUser(username = "이진우", roles = "USER")
void createOAuthInfo() throws Exception {
// given
Expand Down Expand Up @@ -136,8 +137,8 @@ void createOAuthInfo() throws Exception {
.content(objectMapper.writeValueAsString(oAuthTokenDto)))
.andExpect(status().isOk());
}
@Test

@Test
@WithMockUser(username = "이진우", roles = "USER")
void deleteOAuthInfo() throws Exception {
// given
Expand Down

0 comments on commit 75cccd6

Please sign in to comment.