diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java new file mode 100644 index 0000000..3b8fe0c --- /dev/null +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java @@ -0,0 +1,35 @@ +package com.loafle.overflow.module.noauthprobe.service; + +import com.loafle.overflow.module.domain.model.Domain; +import com.loafle.overflow.module.noauthprobe.dao.NoAuthProbeDAO; +import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * Created by snoop on 17. 6. 28. + */ +@Service +public class NoAuthProbeService { + + @Autowired + private NoAuthProbeDAO noAuthProbeDAO; + + + public void regist(NoAuthProbe noAuthProbe) { + + this.noAuthProbeDAO.save(noAuthProbe); + } + + public List readAllByDomain(Domain domain) { + + return this.noAuthProbeDAO.findAllByDomain(domain); + } + + public NoAuthProbe read(long id) { + return this.noAuthProbeDAO.findOne(id); + } + +}