probe modify

This commit is contained in:
insanity 2017-07-04 17:17:26 +09:00
parent 07f043f277
commit 88eda2b5e6
3 changed files with 4 additions and 22 deletions

View File

@ -17,8 +17,8 @@ public class ProbeService {
@Autowired
private ProbeDAO probeDAO;
public void regist(Probe probe) {
this.probeDAO.save(probe);
public Probe regist(Probe probe) {
return this.probeDAO.save(probe);
}
public List<Probe> readAllByDomain(Domain domain) {

View File

@ -17,8 +17,8 @@ public class ProbeTaskService {
@Autowired
private ProbeTaskDAO probeTaskDAO;
public void regist(ProbeTask probeTask) {
this.probeTaskDAO.save(probeTask);
public ProbeTask regist(ProbeTask probeTask) {
return this.probeTaskDAO.save(probeTask);
}
public List<ProbeTask> readAllByProbe(Probe probe) {

View File

@ -1,18 +0,0 @@
package com.loafle.overflow.module.probe.type;
/**
* Created by root on 17. 6. 23.
*/
public enum ProbeStatusType {
I("INITIAL"),
N("NORMAL");
private String stringValue;
ProbeStatusType(String string) {stringValue = string;}
@Override
public String toString() {
return stringValue;
}
}