Skip to content

Commit 24276b3

Browse files
Update ProductControllerV2.java
1 parent 18cf265 commit 24276b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/creepereye/ecommerce/domain/product/controller/ProductControllerV2.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ProductControllerV2 {
2121

2222
@GetMapping("/{id}")
2323
public ResponseEntity<ProductSearch> getProductById(@PathVariable Integer id) {
24-
// V2: Returns the denormalized entity directly (Fast, No Joins)
24+
2525
return productService.findByIdV2(id)
2626
.map(ResponseEntity::ok)
2727
.orElseGet(() -> ResponseEntity.notFound().build());
@@ -34,7 +34,7 @@ public ResponseEntity<List<String>> searchProductNames(@RequestParam("keyword")
3434
@RequestParam(value = "productGroup", required = false) String productGroup,
3535
@RequestParam(value = "section", required = false) String section) {
3636

37-
// Use the multi-filter search method
37+
3838
List<String> productNames = productService.searchNamesV2WithFilters(keyword, productType, department, productGroup, section);
3939
return ResponseEntity.ok(productNames);
4040
}
@@ -50,4 +50,4 @@ public ResponseEntity<Page<ProductSearch>> searchProductResults(
5050
Page<ProductSearch> results = productService.searchResults(keyword, pageable);
5151
return ResponseEntity.ok(results);
5252
}
53-
}
53+
}

0 commit comments

Comments
 (0)