fixed hisotry target

This commit is contained in:
snoop 2018-04-24 12:33:21 +09:00
parent 894877a11e
commit b0c7bc1240
2 changed files with 21 additions and 8 deletions

View File

@ -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<History> readAllByProbeAndType(Probe probe, MetaHistoryType type, PageParams pageParams);
// Page<History> readAllByProbe(Probe probe, PageParams pageParams);
// Page<History> readAllByDomain(Domain domain, PageParams pageParams);
// Page<History> readAllByDomainAndType(Domain domain, MetaHistoryType type, PageParams pageParams);
@WebappAPI
Page<History> readAllByProbeAndType(Probe probe, MetaHistoryType type, PageParams pageParams);
@WebappAPI
Page<History> readAllByProbe(Probe probe, PageParams pageParams);
@WebappAPI
Page<History> readAllByDomain(Domain domain, PageParams pageParams);
@WebappAPI
Page<History> readAllByDomainAndType(Domain domain, MetaHistoryType type, PageParams pageParams);
}

View File

@ -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<Host> hosts, Probe probe) throws OverflowException;
}