From bdbc20a9de64592c5d844bbbc35b10177efeca67 Mon Sep 17 00:00:00 2001 From: byung eun park Date: Mon, 16 Sep 2019 17:54:34 +0900 Subject: [PATCH] file controller added --- .../server/commons/controller/FileUploadController.java | 2 +- .../commons/{data => }/exception/FileDownloadException.java | 2 +- .../commons/{data => }/exception/FileUploadException.java | 2 +- .../{data => }/service/FileUploadDownloadService.java | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/main/java/com/totopia/server/commons/{data => }/exception/FileDownloadException.java (82%) rename src/main/java/com/totopia/server/commons/{data => }/exception/FileUploadException.java (81%) rename src/main/java/com/totopia/server/commons/{data => }/service/FileUploadDownloadService.java (91%) diff --git a/src/main/java/com/totopia/server/commons/controller/FileUploadController.java b/src/main/java/com/totopia/server/commons/controller/FileUploadController.java index 714efb4..e183b04 100644 --- a/src/main/java/com/totopia/server/commons/controller/FileUploadController.java +++ b/src/main/java/com/totopia/server/commons/controller/FileUploadController.java @@ -1,7 +1,7 @@ package com.totopia.server.commons.controller; import com.totopia.server.commons.data.payload.FileUploadResponse; -import com.totopia.server.commons.data.service.FileUploadDownloadService; +import com.totopia.server.commons.service.FileUploadDownloadService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.Resource; diff --git a/src/main/java/com/totopia/server/commons/data/exception/FileDownloadException.java b/src/main/java/com/totopia/server/commons/exception/FileDownloadException.java similarity index 82% rename from src/main/java/com/totopia/server/commons/data/exception/FileDownloadException.java rename to src/main/java/com/totopia/server/commons/exception/FileDownloadException.java index afc15c5..13a9729 100644 --- a/src/main/java/com/totopia/server/commons/data/exception/FileDownloadException.java +++ b/src/main/java/com/totopia/server/commons/exception/FileDownloadException.java @@ -1,4 +1,4 @@ -package com.totopia.server.commons.data.exception; +package com.totopia.server.commons.exception; public class FileDownloadException extends RuntimeException { public FileDownloadException(String message) { diff --git a/src/main/java/com/totopia/server/commons/data/exception/FileUploadException.java b/src/main/java/com/totopia/server/commons/exception/FileUploadException.java similarity index 81% rename from src/main/java/com/totopia/server/commons/data/exception/FileUploadException.java rename to src/main/java/com/totopia/server/commons/exception/FileUploadException.java index 6432340..78be3ab 100644 --- a/src/main/java/com/totopia/server/commons/data/exception/FileUploadException.java +++ b/src/main/java/com/totopia/server/commons/exception/FileUploadException.java @@ -1,4 +1,4 @@ -package com.totopia.server.commons.data.exception; +package com.totopia.server.commons.exception; public class FileUploadException extends RuntimeException { public FileUploadException(String message) { diff --git a/src/main/java/com/totopia/server/commons/data/service/FileUploadDownloadService.java b/src/main/java/com/totopia/server/commons/service/FileUploadDownloadService.java similarity index 91% rename from src/main/java/com/totopia/server/commons/data/service/FileUploadDownloadService.java rename to src/main/java/com/totopia/server/commons/service/FileUploadDownloadService.java index 4d078b3..ba487f9 100644 --- a/src/main/java/com/totopia/server/commons/data/service/FileUploadDownloadService.java +++ b/src/main/java/com/totopia/server/commons/service/FileUploadDownloadService.java @@ -1,7 +1,7 @@ -package com.totopia.server.commons.data.service; +package com.totopia.server.commons.service; -import com.totopia.server.commons.data.exception.FileDownloadException; -import com.totopia.server.commons.data.exception.FileUploadException; +import com.totopia.server.commons.exception.FileDownloadException; +import com.totopia.server.commons.exception.FileUploadException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.Resource; import org.springframework.core.io.UrlResource;