Skip to content

Commit

Permalink
Merge pull request #170 from TRIP-Side-Project/dev
Browse files Browse the repository at this point in the history
Main merge
  • Loading branch information
gkfktkrh153 authored Dec 28, 2023
2 parents 5897f88 + 83e3267 commit a00d72f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public ResponseEntity<Long> createItem(@RequestBody @Valid CreateItemRequest ite
return ResponseEntity.ok(itemService.createItemByDirect(itemRequest));
}

@GetMapping("/{ItemId}")
public ResponseEntity<GetItemResponse> getItem(@PathVariable Long ItemId) {
return ResponseEntity.ok(itemService.getItemDetail(ItemId));
@GetMapping("/{itemId}")
public ResponseEntity<GetItemResponse> getItem(@PathVariable(name = "itemId") Long itemId) {
return ResponseEntity.ok(itemService.getItemDetail(itemId));
}

@GetMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class GetItemResponse {

private Integer minPrice;

private String imageUrl;

public static GetItemResponse of(Item item){
return GetItemResponse.builder()
.id(item.getId())
Expand All @@ -31,6 +33,7 @@ public static GetItemResponse of(Item item){
.buyUrl(item.getBuyUrl())
.maxPrice(item.getMaxPrice())
.minPrice(item.getMinPrice())
.imageUrl(item.getImageUrl())
.build();

}
Expand Down

0 comments on commit a00d72f

Please sign in to comment.