Skip to content

Commit

Permalink
Merge pull request #116 from MEME-UMC/fix/#115
Browse files Browse the repository at this point in the history
[FIX] 메이크업 검색 기능 오류
  • Loading branch information
daeun084 authored Feb 16, 2024
2 parents a4404f7 + 1604b94 commit 45bc213
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ public ApiResponse deleteFavoritePortfolio(@RequestBody FavoritePortfolioDto fav

@Operation(summary = "메이크업 검색", description = "메이크업을 검색/최근 검색어로 검색하는 API입니다.")
@GetMapping("/search")
public ApiResponse search(@Parameter String query,
public ApiResponse search(@RequestParam(value = "query") String query,
@RequestParam(value = "page", defaultValue = "0", required = false) int page,
@RequestParam(value = "sort", defaultValue = "desc") String sort){
return ApiResponse.SuccessResponse(SuccessStatus.SEARCH_GET, modelService.search(query, page, sort));
}

@Operation(summary = "메이크업 검색 - 관심 아티스트", description = "관심 아티스트로 검색하는 API입니다.")
@GetMapping("/search/artist")
public ApiResponse searchArtist(@Parameter Long artistId,
public ApiResponse searchArtist(@RequestParam(value = "artistId") Long artistId,
@RequestParam(value = "page", defaultValue = "0", required = false) int page,
@RequestParam(value = "sort", defaultValue = "desc") String sort
){
Expand All @@ -101,7 +101,7 @@ public ApiResponse searchArtist(@Parameter Long artistId,

@Operation(summary = "메이크업 검색 - 카테고리", description = "메이크업 카테고리로 검색하는 API입니다.")
@GetMapping("/search/category")
public ApiResponse searchCategory(@Parameter Category category,
public ApiResponse searchCategory(@RequestParam(value = "category") Category category,
@RequestParam(value = "page", defaultValue = "0", required = false) int page,
@RequestParam(value = "sort", defaultValue = "desc") String sort
){
Expand Down

0 comments on commit 45bc213

Please sign in to comment.