From 87a4a2f5183c987bba77a9b070af79e809bcdc50 Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 4 Jul 2017 17:28:43 +0900 Subject: [PATCH] return model --- .../service/NoAuthProbeService.java | 5 +++-- .../module/noauthprobe/type/AuthType.java | 19 ------------------- 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 src/main/java/com/loafle/overflow/module/noauthprobe/type/AuthType.java diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java index 512e210..7067b6a 100644 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java @@ -18,8 +18,9 @@ public class NoAuthProbeService { private NoAuthProbeDAO noAuthProbeDAO; - public void regist(NoAuthProbe noAuthProbe) { - this.noAuthProbeDAO.save(noAuthProbe); + public NoAuthProbe regist(NoAuthProbe noAuthProbe) { + + return this.noAuthProbeDAO.save(noAuthProbe); } public List readAllByDomain(Domain domain) { diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/type/AuthType.java b/src/main/java/com/loafle/overflow/module/noauthprobe/type/AuthType.java deleted file mode 100644 index 1d58a0f..0000000 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/type/AuthType.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.loafle.overflow.module.noauthprobe.type; - -/** - * Created by root on 17. 5. 31. - */ -public enum AuthType { - A("ACCEPT"), - D("DENY"), - P("PROCESS"); - - private String stringValue; - AuthType(String string) {stringValue = string;} - - @Override - public String toString() { - return stringValue; - } - -}