Skip to content

Commit

Permalink
fix: 공지사항 검색어 인코딩된 url로 받도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mclub4 committed May 8, 2024
1 parent 27e648c commit 6b8553e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ ResponseEntity<ApiResult<AnnouncementListWrapper>> getAnnouncementSearchList(
@RequestParam(defaultValue = "KO", value = "language") String language,
@Parameter(description = "어디까지 로드됐는지 가르키는 커서입니다. 입력하지 않으면 처음부터 10개 받아옵니다.")
@RequestParam(defaultValue = "0", value = "cursor") long cursor,
@RequestBody AnnouncementSearchListRequest request
@Parameter(description = "검색어입니다. 문자열을 인코딩해서 보내주셔야됩니다.")
@RequestParam(value = "word") String word
) {

if (request.word().length() < 2) throw new BusinessException(SEARCH_TOO_SHORT);
if (word.length() < 2) throw new BusinessException(SEARCH_TOO_SHORT);


Slice<AnnouncementListResponse> slice = announcementSearchService.getAnnouncementSearchList(cursor, type,
language, request.word());
language, word);

List<AnnouncementListResponse> announcements = slice.getContent();
boolean hasNext = slice.hasNext();
Expand Down

0 comments on commit 6b8553e

Please sign in to comment.