From e326bd512c76295c0065e7589af78ccb41160176 Mon Sep 17 00:00:00 2001 From: beng9re Date: Sun, 17 Dec 2023 20:32:17 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20YSL-4=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=ED=8C=A8=ED=82=A4=EC=A7=80=20=EA=B5=AC=EC=84=B1=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20(#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: SwaggerConfig 패키지 위치 변경 * feat: 기본적인 Sample 패키지 구조 생성 --- .../{configuration => global}/swagger/SwaggerConfig.java | 2 +- .../idiot/yesslave/sample/application/SampleService.java | 8 ++++++++ .../java/org/idiot/yesslave/sample/domain/Sample.java | 4 ++++ .../java/org/idiot/yesslave/sample/dto/SampleRequest.java | 4 ++++ .../org/idiot/yesslave/sample/dto/SampleResponse.java | 4 ++++ .../yesslave/sample/repository/SampleRepository.java | 5 +++++ .../org/idiot/yesslave/sample/ui/SampleController.java | 7 +++++++ 7 files changed, 33 insertions(+), 1 deletion(-) rename src/main/java/org/idiot/yesslave/{configuration => global}/swagger/SwaggerConfig.java (90%) create mode 100644 src/main/java/org/idiot/yesslave/sample/application/SampleService.java create mode 100644 src/main/java/org/idiot/yesslave/sample/domain/Sample.java create mode 100644 src/main/java/org/idiot/yesslave/sample/dto/SampleRequest.java create mode 100644 src/main/java/org/idiot/yesslave/sample/dto/SampleResponse.java create mode 100644 src/main/java/org/idiot/yesslave/sample/repository/SampleRepository.java create mode 100644 src/main/java/org/idiot/yesslave/sample/ui/SampleController.java diff --git a/src/main/java/org/idiot/yesslave/configuration/swagger/SwaggerConfig.java b/src/main/java/org/idiot/yesslave/global/swagger/SwaggerConfig.java similarity index 90% rename from src/main/java/org/idiot/yesslave/configuration/swagger/SwaggerConfig.java rename to src/main/java/org/idiot/yesslave/global/swagger/SwaggerConfig.java index e9cb16a..d2836a5 100644 --- a/src/main/java/org/idiot/yesslave/configuration/swagger/SwaggerConfig.java +++ b/src/main/java/org/idiot/yesslave/global/swagger/SwaggerConfig.java @@ -1,4 +1,4 @@ -package org.idiot.yesslave.configuration.swagger; +package org.idiot.yesslave.global.swagger; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; diff --git a/src/main/java/org/idiot/yesslave/sample/application/SampleService.java b/src/main/java/org/idiot/yesslave/sample/application/SampleService.java new file mode 100644 index 0000000..b61c8cf --- /dev/null +++ b/src/main/java/org/idiot/yesslave/sample/application/SampleService.java @@ -0,0 +1,8 @@ +package org.idiot.yesslave.sample.application; + +import org.springframework.stereotype.Service; + +@Service +public class SampleService { + +} diff --git a/src/main/java/org/idiot/yesslave/sample/domain/Sample.java b/src/main/java/org/idiot/yesslave/sample/domain/Sample.java new file mode 100644 index 0000000..37fad8f --- /dev/null +++ b/src/main/java/org/idiot/yesslave/sample/domain/Sample.java @@ -0,0 +1,4 @@ +package org.idiot.yesslave.sample.domain; + +public class Sample { +} diff --git a/src/main/java/org/idiot/yesslave/sample/dto/SampleRequest.java b/src/main/java/org/idiot/yesslave/sample/dto/SampleRequest.java new file mode 100644 index 0000000..0a75af2 --- /dev/null +++ b/src/main/java/org/idiot/yesslave/sample/dto/SampleRequest.java @@ -0,0 +1,4 @@ +package org.idiot.yesslave.sample.dto; + +public class SampleRequest { +} diff --git a/src/main/java/org/idiot/yesslave/sample/dto/SampleResponse.java b/src/main/java/org/idiot/yesslave/sample/dto/SampleResponse.java new file mode 100644 index 0000000..d79faaa --- /dev/null +++ b/src/main/java/org/idiot/yesslave/sample/dto/SampleResponse.java @@ -0,0 +1,4 @@ +package org.idiot.yesslave.sample.dto; + +public class SampleResponse { +} diff --git a/src/main/java/org/idiot/yesslave/sample/repository/SampleRepository.java b/src/main/java/org/idiot/yesslave/sample/repository/SampleRepository.java new file mode 100644 index 0000000..d8d8862 --- /dev/null +++ b/src/main/java/org/idiot/yesslave/sample/repository/SampleRepository.java @@ -0,0 +1,5 @@ +package org.idiot.yesslave.sample.repository; + +public interface SampleRepository { + +} diff --git a/src/main/java/org/idiot/yesslave/sample/ui/SampleController.java b/src/main/java/org/idiot/yesslave/sample/ui/SampleController.java new file mode 100644 index 0000000..0999e61 --- /dev/null +++ b/src/main/java/org/idiot/yesslave/sample/ui/SampleController.java @@ -0,0 +1,7 @@ +package org.idiot.yesslave.sample.ui; + +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class SampleController { +}