Skip to content

Commit

Permalink
refactor: 경매 상세 조회 파라미터명 수정
Browse files Browse the repository at this point in the history
- viewType -> type

CHZZ-116
  • Loading branch information
viaunixue committed Oct 1, 2024
1 parent e477f97 commit 9818bfd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public ResponseEntity<Page<LostAuctionResponse>> getLostAuctionHistory(
@GetMapping("/{auctionId}")
public ResponseEntity<?> getAuctionDetails(
@PathVariable Long auctionId,
@RequestParam(defaultValue = "FULL") AuctionViewType viewType,
@RequestParam(defaultValue = "FULL") AuctionViewType type,
@LoginUser Long userId) {
return switch (viewType) {
return switch (type) {
case FULL -> ResponseEntity.ok(auctionService.getFullAuctionDetails(auctionId, userId));
case SIMPLE -> ResponseEntity.ok(auctionService.getSimpleAuctionDetails(auctionId));
};
Expand Down

0 comments on commit 9818bfd

Please sign in to comment.