Skip to content

Commit

Permalink
fix: merge 충돌로 인한 상품 조회 Controller 누락 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogu1208 committed Aug 14, 2024
1 parent 775e8bd commit 9da6b2b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import org.springframework.web.multipart.MultipartFile
import org.store.clothstar.common.dto.MessageDTO
import org.store.clothstar.product.dto.request.ProductCreateRequest
import org.store.clothstar.product.dto.request.UpdateDisplayStatusRequest
import org.store.clothstar.product.dto.response.ProductResponse
import org.store.clothstar.product.service.ProductApplicationService
import org.store.clothstar.product.service.ProductService

@Tag(name = "Products", description = "Products(상품 옵션) 관련 API 입니다.")
@RequestMapping("/v3/products")
Expand All @@ -38,7 +38,13 @@ private class ProductController(
)

return ResponseEntity(messageDTO, HttpStatus.CREATED)
}

@GetMapping("/{productId}")
@Operation(summary = "상품 상세 조회", description = "상품 ID를 사용하여 특정 상품의 상세 정보를 조회한다.")
fun getProductDetails(@PathVariable productId: Long): ResponseEntity<ProductResponse> {
val productResponse = productApplicationService.getProductDetails(productId)
return ResponseEntity(productResponse, HttpStatus.OK)
}

@PatchMapping("/{productId}/displayStatus")
Expand Down

0 comments on commit 9da6b2b

Please sign in to comment.