Skip to content

Commit

Permalink
Merge pull request #29 from Imsyp/main
Browse files Browse the repository at this point in the history
comment 주석 추가
  • Loading branch information
Imsyp authored Sep 21, 2024
2 parents 92f2c02 + e6fd222 commit 3e6ff87
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ public class PriceController {
*
* 플랫폼 이름, 카테고리 이름, 상품 id를 이용하여 priceService의 getProductDetails를 호출
*
* encoded category_name을 decoded category_name으로 변환하여 priceService에 전달
* (%EC%B1%84%EC%86%8C -> 채소)
*
* 가격 정보를 담은 Price 객체(platform/category_name/product_id에 해당)를 반환
*
*/
@GetMapping("{platform}/{product_id}/**")
public Price getPriceInfo(@PathVariable String platform, HttpServletRequest request, @PathVariable String product_id) {
Expand All @@ -44,6 +42,14 @@ public Price getPriceInfo(@PathVariable String platform, HttpServletRequest requ
return priceService.getProductDetails(platform, category_name, product_id);
}

/**
*
* 플랫폼 이름, 상품 id를 이용하여 priceService의 getProductDetailsWithoutCategory를 호출
*
* 가격 정보를 담은 Price 객체(platform/category_name/product_id에 해당)를 반환
* -> category 전수탐색을 통해 알맞은 category를 알아서 찾아냄
*
*/
@GetMapping("{platform}/{product_id}")
public Price getPriceInfo(@PathVariable String platform, @PathVariable String product_id) {
return priceService.getProductDetailsWithoutCategory(platform, product_id);
Expand Down

0 comments on commit 3e6ff87

Please sign in to comment.