diff --git a/src/main/java/com/loafle/overflow/module/email/service/EmailAuthService.java b/src/main/java/com/loafle/overflow/module/email/service/EmailAuthService.java index c52bc2e..ec9a4f9 100644 --- a/src/main/java/com/loafle/overflow/module/email/service/EmailAuthService.java +++ b/src/main/java/com/loafle/overflow/module/email/service/EmailAuthService.java @@ -28,7 +28,7 @@ public class EmailAuthService { @Autowired private EmailAuthDAO emailAuthDAO; - public EmailAuth sendEmailByMemberId(long memberId, String memberEmail) { + public EmailAuth sendEmailByMember(long memberId, String memberEmail) { try { this.sendSimpleEmail(memberEmail, "Test Spring Mail", "Confirm Email"); }catch (MailException e) { diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java index f3903ce..3b78f8a 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java @@ -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 readAllByDomain(Domain domain) { diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java index d3d3929..8198f79 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java @@ -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 readAllByProbe(Probe probe) { diff --git a/src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java b/src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java deleted file mode 100644 index 1e4c602..0000000 --- a/src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java +++ /dev/null @@ -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; - } -}