Skip to content

Commit

Permalink
Merge pull request #66 from EcoMarket-CUK/feature/#65
Browse files Browse the repository at this point in the history
[feature/#65]: 진행중인 경매 상세 조회 시 로그인 사용자의 pk 추가 반환
  • Loading branch information
veronees authored Nov 18, 2024
2 parents 4da0c84 + 2ef063f commit e47ba45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
@Getter
public class OngoingProductDetailsDto {

@Schema(description = "현재 로그인 사용자 ID", example = "1")
private Long memberId;

@Schema(description = "경매 상품 식별자 ID", example = "1")
private Long productId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public interface ProductMapper {
@Mapping(source = "product.images", target = "images")
EndedProductDetailsDto toEndedProductDetailsDto(Auction auction);

@Mapping(source = "memberId", target = "memberId")
@Mapping(source = "auction.product.id", target = "productId")
@Mapping(source = "auction.id", target = "auctionId")
@Mapping(source = "auction.auctionCategory", target = "auctionCategory")
Expand All @@ -45,7 +46,7 @@ public interface ProductMapper {
@Mapping(source = "top3BidDatePrice", target = "top3BidDatePrice")
@Mapping(source = "bidVolumeByDate", target = "bidVolumeByDate")
OngoingProductDetailsDto toOngoingProductDetailsDto(Auction auction, String sellerNickname,
List<BidDatePriceResponse> top3BidDatePrice, List<BidVolumeResponse> bidVolumeByDate);
List<BidDatePriceResponse> top3BidDatePrice, List<BidVolumeResponse> bidVolumeByDate, Long memberId);

default List<String> filterRepresentativeImages(List<AuctionProductImage> images) {
return images.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ public OngoingProductDetailsDto getOngoingAuctionDetails(Long auctionId, Member
? auction.getSeller().getNickname() + "(나)" : auction.getSeller().getNickname();

return productMapper.toOngoingProductDetailsDto(auction, sellerNickname, bidDatePriceResponseList,
volumeResponseList);
volumeResponseList, member.getId());
}
}

0 comments on commit e47ba45

Please sign in to comment.