-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from UniBond-jijijin/fix/51-search-disease
[fix/51-search-disease] 질병 검색 API 수정
- Loading branch information
Showing
15 changed files
with
1,455 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
= Member API | ||
Lucy Oh; | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlishtjs | ||
:toc: left | ||
:toclevels: 4 | ||
:sectlinks: | ||
|
||
ifndef::snippets[] | ||
:snippets: ./build/generated-snippets | ||
endif::[] | ||
|
||
== Search Disease By Name | ||
|
||
한글 또는 영어 이름을 통해 질병 검색하기 | ||
|
||
=== Request | ||
include::{snippets}/search-disease/http-request.adoc[] | ||
include::{snippets}/search-disease/query-parameters.adoc[] | ||
|
||
|
||
=== Response | ||
|
||
include::{snippets}/search-disease/http-response.adoc[] | ||
include::{snippets}/search-disease/response-fields.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
unibond/src/main/java/com/unibond/unibond/disease/repository/DiseaseRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package com.unibond.unibond.disease.repository; | ||
|
||
import com.unibond.unibond.disease.domain.Disease; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface DiseaseRepository extends JpaRepository<Disease, Long> { | ||
List<Disease> findFirst5ByDiseaseNameKorContaining(String query); | ||
List<Disease> findFirst5ByDiseaseNameEngContaining(String query); | ||
Page<Disease> findFirst5ByDiseaseNameKorContains(String query, Pageable pageable); | ||
Page<Disease> findFirst5ByDiseaseNameEngContains(String query, Pageable pageable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.