Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/12 : 구매 완료 상품, 판매 완료 상품 조회 #20

Merged
merged 4 commits into from
Oct 19, 2024

Conversation

soleu
Copy link
Collaborator

@soleu soleu commented Oct 17, 2024

#️⃣연관된 이슈

#12 , #13

📝작업 내용

구매 완료 상품, 판매 완료 상품 조회

  • 구매 완료 상품 : 구매자 입장에서 본인에게 낙찰된 상품 정보 조회
  • 판매 완료 상품 : 판매자 입장에서 낙찰된 상품 정보 조회

스크린샷 (선택)

image

@soleu soleu added the feature label Oct 17, 2024
@soleu soleu requested a review from mason136 October 17, 2024 12:14
@soleu soleu self-assigned this Oct 17, 2024
return ApiResponse.success(auctionService.getBuyHistory(userId.toLong()))
}

@GetMapping("{id}/sold")
fun getSoldAuctionDetail(@RequestParam userId: String, @PathVariable id: Long): ApiResponse<SellAuctionDetailDto> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id보단 auctionId로 명시적으로 쓰는게 더 좋아보이네요

}

fun getBoughtAuctionDetail(userId: Long, auctionId: Long): BuyAuctionDetailDto {
val auction = auctionRepository.findById(auctionId)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getSoldAuctionDetail와 중복된 조회 로직은 줄여보시죠

Copy link

sonarcloud bot commented Oct 19, 2024

@soleu soleu merged commit d264def into main Oct 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants