Skip to content

Commit

Permalink
chore: 프로필 추가 API 주석 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
hgo641 committed May 16, 2024
1 parent 70c3577 commit 5ded692
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 198 deletions.
25 changes: 12 additions & 13 deletions src/main/kotlin/com/petqua/presentation/member/MemberController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.petqua.common.config.SIGN_UP_TOKEN_SECURITY_SCHEME_KEY
import com.petqua.domain.auth.Auth
import com.petqua.domain.auth.LoginMember
import com.petqua.domain.auth.SignUpGuest
import com.petqua.presentation.member.dto.MemberAddProfileRequest
import com.petqua.presentation.member.dto.MemberSignUpRequest
import com.petqua.presentation.member.dto.UpdateProfileRequest
import io.swagger.v3.oas.annotations.Operation
Expand Down Expand Up @@ -71,18 +70,18 @@ class MemberController(
return ResponseEntity.noContent().build()
}

@Operation(summary = "회원 물생활 프로필 입력 API", description = "회원의 추가적인 물생활 정보를 입력합니다")
@ApiResponse(responseCode = "204", description = "회원 물생활 프로필 입력 성공")
@SecurityRequirement(name = ACCESS_TOKEN_SECURITY_SCHEME_KEY)
@PostMapping("/profiles")
fun addProfile(
@Auth loginMember: LoginMember,
@RequestBody request: MemberAddProfileRequest,
): ResponseEntity<Unit> {
val command = request.toCommand(loginMember.memberId)
memberService.addProfile(command)
return ResponseEntity.noContent().build()
}
// @Operation(summary = "회원 물생활 프로필 입력 API", description = "회원의 추가적인 물생활 정보를 입력합니다")
// @ApiResponse(responseCode = "204", description = "회원 물생활 프로필 입력 성공")
// @SecurityRequirement(name = ACCESS_TOKEN_SECURITY_SCHEME_KEY)
// @PostMapping("/profiles")
// fun addProfile(
// @Auth loginMember: LoginMember,
// @RequestBody request: MemberAddProfileRequest,
// ): ResponseEntity<Unit> {
// val command = request.toCommand(loginMember.memberId)
// memberService.addProfile(command)
// return ResponseEntity.noContent().build()
// }

@Operation(summary = "회원 프로필 수정 API", description = "회원의 프로필 정보를 수정합니다")
@ApiResponse(responseCode = "204", description = "회원 프로필 수정 성공")
Expand Down
Loading

0 comments on commit 5ded692

Please sign in to comment.