Skip to content

Commit

Permalink
O2F-1061 [FEAT] 경매 목록 조회
Browse files Browse the repository at this point in the history
  • Loading branch information
wakkpu committed Jan 3, 2024
1 parent a8326fd commit 4d396b6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
import com.dailyon.auctionservice.document.Auction;
import com.dailyon.auctionservice.dto.request.CreateAuctionRequest;
import com.dailyon.auctionservice.dto.response.CreateAuctionResponse;
import com.dailyon.auctionservice.dto.response.ReadAuctionPageResponse;
import com.dailyon.auctionservice.service.AuctionService;
import feign.FeignException;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

import java.util.List;

Expand All @@ -31,4 +34,8 @@ public CreateAuctionResponse createAuction(CreateAuctionRequest createAuctionReq
}
return CreateAuctionResponse.create(auction, productResponse);
}

public ReadAuctionPageResponse readAuctions(Pageable pageable) {
return ReadAuctionPageResponse.of(auctionService.readAuctions(pageable));
}
}

0 comments on commit 4d396b6

Please sign in to comment.