Skip to content

Commit

Permalink
Feat: 질병 검색 결과 늘리기
Browse files Browse the repository at this point in the history
  • Loading branch information
5jisoo committed Jan 12, 2024
1 parent 9ebac77 commit f8e195c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class DiseaseController {
private final DiseaseService diseaseService;

@GetMapping("/search")
public BaseResponse<SearchDiseaseResDto> searchDisease(@RequestParam("lan") String language,
public BaseResponse<SearchDiseaseResDto> searchDisease(@RequestParam(value = "lan", required = false, defaultValue = "kor") String language,
@RequestParam("query") String searchWord,
@PageableDefault(size = 5) Pageable pageable) {
@PageableDefault(size = 30) Pageable pageable) {
try {
return new BaseResponse<>(diseaseService.searchDisease(language, searchWord, pageable));
} catch (BaseException e) {
Expand Down

0 comments on commit f8e195c

Please sign in to comment.