Skip to content

Commit

Permalink
feat::product testCode2 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunJunSon committed Jan 15, 2024
1 parent 20beabb commit 45d60da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ResponseEntity<ProductDto> findProductById(@PathVariable("id") Long productId) {
.orElse(ResponseEntity.status(HttpStatus.NOT_FOUND).build());
}

@GetMapping("/products/")
@GetMapping("/products")
ResponseEntity<List<ProductDto>> findProductByKeyword(@RequestParam("keyword") String keyword){
final List<ProductDto> list = productService.getProductListByKeyword(keyword);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* DTO for {@link com.kernel360.product.entity.Product}
*/

public record ProductDto(Integer productNo,
public record ProductDto(Long productNo,
String productName,
String barcode,
String description,
Expand All @@ -22,7 +22,7 @@ public record ProductDto(Integer productNo,
) {

public static ProductDto of(
Integer productNo,
Long productNo,
String productName,
String barcode,
String description,
Expand Down

0 comments on commit 45d60da

Please sign in to comment.