From b0c7bc1240e8029f0199b3a1e5fc73d57bba8ef9 Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 24 Apr 2018 12:33:21 +0900 Subject: [PATCH] fixed hisotry target --- .../history/service/HistoryService.java | 21 ++++++++++++------- .../service/TargetDiscoveryService.java | 8 +++++++ 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/loafle/overflow/module/history/service/HistoryService.java b/src/main/java/com/loafle/overflow/module/history/service/HistoryService.java index 397238d..adc31dd 100644 --- a/src/main/java/com/loafle/overflow/module/history/service/HistoryService.java +++ b/src/main/java/com/loafle/overflow/module/history/service/HistoryService.java @@ -1,19 +1,24 @@ package com.loafle.overflow.module.history.service; +import com.loafle.overflow.module.core.annotation.WebappAPI; import com.loafle.overflow.module.core.model.PageParams; import com.loafle.overflow.module.domain.model.Domain; import com.loafle.overflow.module.history.model.History; +import com.loafle.overflow.module.meta.model.MetaHistoryType; +import com.loafle.overflow.module.probe.model.Probe; import org.springframework.data.domain.Page; public interface HistoryService { - // History regist(History history); + // ?? + History regist(History history); - // Page readAllByProbeAndType(Probe probe, MetaHistoryType type, PageParams pageParams); - - // Page readAllByProbe(Probe probe, PageParams pageParams); - - // Page readAllByDomain(Domain domain, PageParams pageParams); - - // Page readAllByDomainAndType(Domain domain, MetaHistoryType type, PageParams pageParams); + @WebappAPI + Page readAllByProbeAndType(Probe probe, MetaHistoryType type, PageParams pageParams); + @WebappAPI + Page readAllByProbe(Probe probe, PageParams pageParams); + @WebappAPI + Page readAllByDomain(Domain domain, PageParams pageParams); + @WebappAPI + Page readAllByDomainAndType(Domain domain, MetaHistoryType type, PageParams pageParams); } diff --git a/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java b/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java index d783044..607e9e9 100644 --- a/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java +++ b/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java @@ -1,10 +1,18 @@ package com.loafle.overflow.module.target.service; +import com.loafle.overflow.module.core.annotation.WebappAPI; +import com.loafle.overflow.module.core.exception.OverflowException; +import com.loafle.overflow.module.discovery.model.Host; +import com.loafle.overflow.module.probe.model.Probe; import com.loafle.overflow.module.target.model.Target; +import java.util.List; + /** * Created by snoop on 17. 6. 28. */ public interface TargetDiscoveryService { + @WebappAPI + boolean saveAllTarget(List hosts, Probe probe) throws OverflowException; }