-
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 #44 from makevook/issue/42
feat: 기존 model 및 logic을 데모 전용으로 변경
- Loading branch information
Showing
30 changed files
with
336 additions
and
400 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
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,31 @@ | ||
package vook.server.api.app; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.stereotype.Service; | ||
import vook.server.api.model.demo.DemoGlossary; | ||
import vook.server.api.model.demo.DemoGlossaryRepository; | ||
import vook.server.api.model.demo.DemoTerm; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class DemoService { | ||
|
||
private final DemoGlossaryRepository demoGlossaryRepository; | ||
private final DemoSearchRepository searchRepository; | ||
|
||
public List<DemoGlossary> findAllDemoGlossary() { | ||
return demoGlossaryRepository.findAll(); | ||
} | ||
|
||
public Optional<DemoGlossary> findDemoGlossaryByUid(String demoGlossaryUid) { | ||
return demoGlossaryRepository.findByUid(demoGlossaryUid); | ||
} | ||
|
||
public List<DemoTerm> findAllDemoTermBy(DemoGlossary demoGlossary, Pageable pageable) { | ||
return searchRepository.searchDemoTerm(demoGlossary.getUid(), pageable); | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
api/src/main/java/vook/server/api/app/GlossaryService.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
9 changes: 0 additions & 9 deletions
9
api/src/main/java/vook/server/api/model/GlossaryRepository.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
api/src/main/java/vook/server/api/model/MemberRepository.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
api/src/main/java/vook/server/api/model/TermSynonymRepository.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.