From 07f043f277dd4ad2a307336b5dd6a179ed3c097c Mon Sep 17 00:00:00 2001 From: geek Date: Tue, 4 Jul 2017 12:33:34 +0900 Subject: [PATCH 1/2] email attach send method added --- .../loafle/overflow/module/email/service/EmailAuthService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From 88eda2b5e6e121179070a08ce221fd0b0c5d9252 Mon Sep 17 00:00:00 2001 From: insanity Date: Tue, 4 Jul 2017 17:17:26 +0900 Subject: [PATCH 2/2] probe modify --- .../module/probe/service/ProbeService.java | 4 ++-- .../module/probe/service/ProbeTaskService.java | 4 ++-- .../module/probe/type/ProbeStatusType.java | 18 ------------------ 3 files changed, 4 insertions(+), 22 deletions(-) delete mode 100644 src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java 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; - } -}