added service
noauth probe
This commit is contained in:
parent
7428634bf0
commit
be7b667618
|
@ -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<NoAuthProbe> readAllByDomain(Domain domain) {
|
||||
|
||||
return this.noAuthProbeDAO.findAllByDomain(domain);
|
||||
}
|
||||
|
||||
public NoAuthProbe read(long id) {
|
||||
return this.noAuthProbeDAO.findOne(id);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user