probe modify
This commit is contained in:
parent
07f043f277
commit
88eda2b5e6
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user