From 7616c8dab18af98787e662d56435acca7322db78 Mon Sep 17 00:00:00 2001 From: jcw1031 Date: Wed, 22 Nov 2023 14:16:08 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=ED=8C=A8=ED=82=A4=EC=A7=80=20?= =?UTF-8?q?=EA=B5=AC=EC=A1=B0=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/ac/knu/likeknu/controller/DeviceController.java | 4 ++-- .../java/ac/knu/likeknu/controller/dto/device/TagName.java | 4 ---- .../device/{ => request}/SubscribeTagsUpdateRequest.java | 2 +- .../knu/likeknu/controller/dto/device/request/TagName.java | 4 ++++ .../dto/device/{ => response}/SubscribeTagListResponse.java | 2 +- src/main/java/ac/knu/likeknu/service/DeviceService.java | 6 +++--- 6 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 src/main/java/ac/knu/likeknu/controller/dto/device/TagName.java rename src/main/java/ac/knu/likeknu/controller/dto/device/{ => request}/SubscribeTagsUpdateRequest.java (66%) create mode 100644 src/main/java/ac/knu/likeknu/controller/dto/device/request/TagName.java rename src/main/java/ac/knu/likeknu/controller/dto/device/{ => response}/SubscribeTagListResponse.java (80%) diff --git a/src/main/java/ac/knu/likeknu/controller/DeviceController.java b/src/main/java/ac/knu/likeknu/controller/DeviceController.java index 836a5e3..10d52dd 100644 --- a/src/main/java/ac/knu/likeknu/controller/DeviceController.java +++ b/src/main/java/ac/knu/likeknu/controller/DeviceController.java @@ -1,12 +1,12 @@ package ac.knu.likeknu.controller; import ac.knu.likeknu.controller.dto.base.ResponseDto; -import ac.knu.likeknu.controller.dto.device.SubscribeTagListResponse; -import ac.knu.likeknu.controller.dto.device.SubscribeTagsUpdateRequest; import ac.knu.likeknu.controller.dto.device.request.CampusModificationRequest; import ac.knu.likeknu.controller.dto.device.request.ChangeNotificationRequest; import ac.knu.likeknu.controller.dto.device.request.DeviceRegistrationRequest; import ac.knu.likeknu.controller.dto.device.request.DeviceTokenRequest; +import ac.knu.likeknu.controller.dto.device.request.SubscribeTagsUpdateRequest; +import ac.knu.likeknu.controller.dto.device.response.SubscribeTagListResponse; import ac.knu.likeknu.controller.dto.device.response.TurnOnNotificationResponse; import ac.knu.likeknu.service.DeviceService; import org.springframework.web.bind.annotation.GetMapping; diff --git a/src/main/java/ac/knu/likeknu/controller/dto/device/TagName.java b/src/main/java/ac/knu/likeknu/controller/dto/device/TagName.java deleted file mode 100644 index e0de6f4..0000000 --- a/src/main/java/ac/knu/likeknu/controller/dto/device/TagName.java +++ /dev/null @@ -1,4 +0,0 @@ -package ac.knu.likeknu.controller.dto.device; - -public record TagName(String tag) { -} diff --git a/src/main/java/ac/knu/likeknu/controller/dto/device/SubscribeTagsUpdateRequest.java b/src/main/java/ac/knu/likeknu/controller/dto/device/request/SubscribeTagsUpdateRequest.java similarity index 66% rename from src/main/java/ac/knu/likeknu/controller/dto/device/SubscribeTagsUpdateRequest.java rename to src/main/java/ac/knu/likeknu/controller/dto/device/request/SubscribeTagsUpdateRequest.java index 13e4378..add0b1b 100644 --- a/src/main/java/ac/knu/likeknu/controller/dto/device/SubscribeTagsUpdateRequest.java +++ b/src/main/java/ac/knu/likeknu/controller/dto/device/request/SubscribeTagsUpdateRequest.java @@ -1,4 +1,4 @@ -package ac.knu.likeknu.controller.dto.device; +package ac.knu.likeknu.controller.dto.device.request; import java.util.List; diff --git a/src/main/java/ac/knu/likeknu/controller/dto/device/request/TagName.java b/src/main/java/ac/knu/likeknu/controller/dto/device/request/TagName.java new file mode 100644 index 0000000..687ec52 --- /dev/null +++ b/src/main/java/ac/knu/likeknu/controller/dto/device/request/TagName.java @@ -0,0 +1,4 @@ +package ac.knu.likeknu.controller.dto.device.request; + +public record TagName(String tag) { +} diff --git a/src/main/java/ac/knu/likeknu/controller/dto/device/SubscribeTagListResponse.java b/src/main/java/ac/knu/likeknu/controller/dto/device/response/SubscribeTagListResponse.java similarity index 80% rename from src/main/java/ac/knu/likeknu/controller/dto/device/SubscribeTagListResponse.java rename to src/main/java/ac/knu/likeknu/controller/dto/device/response/SubscribeTagListResponse.java index 72a58cc..ff90374 100644 --- a/src/main/java/ac/knu/likeknu/controller/dto/device/SubscribeTagListResponse.java +++ b/src/main/java/ac/knu/likeknu/controller/dto/device/response/SubscribeTagListResponse.java @@ -1,4 +1,4 @@ -package ac.knu.likeknu.controller.dto.device; +package ac.knu.likeknu.controller.dto.device.response; import ac.knu.likeknu.domain.value.Tag; diff --git a/src/main/java/ac/knu/likeknu/service/DeviceService.java b/src/main/java/ac/knu/likeknu/service/DeviceService.java index 203905c..3c6f7a5 100644 --- a/src/main/java/ac/knu/likeknu/service/DeviceService.java +++ b/src/main/java/ac/knu/likeknu/service/DeviceService.java @@ -1,12 +1,12 @@ package ac.knu.likeknu.service; -import ac.knu.likeknu.controller.dto.device.SubscribeTagListResponse; -import ac.knu.likeknu.controller.dto.device.SubscribeTagsUpdateRequest; -import ac.knu.likeknu.controller.dto.device.TagName; import ac.knu.likeknu.controller.dto.device.request.CampusModificationRequest; import ac.knu.likeknu.controller.dto.device.request.ChangeNotificationRequest; import ac.knu.likeknu.controller.dto.device.request.DeviceRegistrationRequest; import ac.knu.likeknu.controller.dto.device.request.DeviceTokenRequest; +import ac.knu.likeknu.controller.dto.device.request.SubscribeTagsUpdateRequest; +import ac.knu.likeknu.controller.dto.device.request.TagName; +import ac.knu.likeknu.controller.dto.device.response.SubscribeTagListResponse; import ac.knu.likeknu.domain.Device; import ac.knu.likeknu.domain.value.Campus; import ac.knu.likeknu.domain.value.Tag;