From 2932da0279e5c5c083ea50a0a4021dde196d4d95 Mon Sep 17 00:00:00 2001 From: 101 Date: Tue, 23 Apr 2024 19:55:27 +0900 Subject: [PATCH] update :: GetDocument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get top 10 삭제 --- .../domain/document/service/GetDocumentService.java | 12 ------------ .../domain/document/usecase/GetDocumentUsecase.java | 2 -- 2 files changed, 14 deletions(-) diff --git a/daemawiki-service/src/main/java/org/daemawiki/domain/document/service/GetDocumentService.java b/daemawiki-service/src/main/java/org/daemawiki/domain/document/service/GetDocumentService.java index 5e35abcb..3725c446 100644 --- a/daemawiki-service/src/main/java/org/daemawiki/domain/document/service/GetDocumentService.java +++ b/daemawiki-service/src/main/java/org/daemawiki/domain/document/service/GetDocumentService.java @@ -54,12 +54,6 @@ public Flux searchDocumentContent(String text, PagingInfo return findDocumentPort.searchDocumentContent(text, pagingInfo); } - @Override - public Flux getDocumentMostRevisionTop10() { - return findDocumentPort.getDocumentTop10() - .map(SimpleDocumentResponse::of); - } - @Override public Flux getDocumentsMostRevision(PagingInfo pagingInfo) { return findDocumentPort.getDocumentMostRevision(pagingInfo).map(SimpleDocumentResponse::of); @@ -70,10 +64,4 @@ public Flux getDocumentOrderByView(PagingInfo pagin return findDocumentPort.getDocumentOrderByView(pagingInfo).map(GetMostViewDocumentResponse::of); } - @Override - public Flux getDocumentOrderByViewTop10() { - return findDocumentPort.getDocumentOrderByViewTop10() - .map(GetMostViewDocumentResponse::of); - } - } diff --git a/daemawiki-service/src/main/java/org/daemawiki/domain/document/usecase/GetDocumentUsecase.java b/daemawiki-service/src/main/java/org/daemawiki/domain/document/usecase/GetDocumentUsecase.java index f83014a3..2e0a2274 100644 --- a/daemawiki-service/src/main/java/org/daemawiki/domain/document/usecase/GetDocumentUsecase.java +++ b/daemawiki-service/src/main/java/org/daemawiki/domain/document/usecase/GetDocumentUsecase.java @@ -14,9 +14,7 @@ public interface GetDocumentUsecase { Flux searchDocument(String text, PagingInfo pagingInfo); Flux searchDocumentTitle(String text, PagingInfo pagingInfo); Flux searchDocumentContent(String text, PagingInfo pagingInfo); - Flux getDocumentMostRevisionTop10(); Flux getDocumentsMostRevision(PagingInfo pagingInfo); Flux getDocumentOrderByView(PagingInfo pagingInfo); - Flux getDocumentOrderByViewTop10(); }