From d979f1b775b6d44b954a355dfd6120d8585563bd Mon Sep 17 00:00:00 2001 From: hawardShin Date: Sat, 23 Nov 2024 21:36:02 +0900 Subject: [PATCH] Chore: Checkstyle --- src/main/java/capstone/relation/GoodRelationApplication.java | 1 - .../capstone/relation/document/controller/DocsController.java | 2 +- .../java/capstone/relation/document/service/DocsService.java | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/capstone/relation/GoodRelationApplication.java b/src/main/java/capstone/relation/GoodRelationApplication.java index 4b67778..859405c 100644 --- a/src/main/java/capstone/relation/GoodRelationApplication.java +++ b/src/main/java/capstone/relation/GoodRelationApplication.java @@ -1,6 +1,5 @@ package capstone.relation; -import org.bson.Document; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.ConfigurationPropertiesScan; diff --git a/src/main/java/capstone/relation/document/controller/DocsController.java b/src/main/java/capstone/relation/document/controller/DocsController.java index 09fb6cb..e314127 100644 --- a/src/main/java/capstone/relation/document/controller/DocsController.java +++ b/src/main/java/capstone/relation/document/controller/DocsController.java @@ -16,9 +16,9 @@ import capstone.relation.document.dto.FileContentDto; import capstone.relation.document.dto.FolderCreateDto; import capstone.relation.document.dto.FolderInfoDto; +import capstone.relation.document.dto.UpdateFileReqDto; import capstone.relation.document.service.DocsService; import capstone.relation.global.util.SecurityUtil; -import capstone.relation.document.dto.UpdateFileReqDto; import io.swagger.v3.oas.annotations.Operation; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/capstone/relation/document/service/DocsService.java b/src/main/java/capstone/relation/document/service/DocsService.java index ca1daa6..205cf97 100644 --- a/src/main/java/capstone/relation/document/service/DocsService.java +++ b/src/main/java/capstone/relation/document/service/DocsService.java @@ -51,6 +51,7 @@ public FolderInfoDto createFolder(String folderName, Long userId) { .folderName(folderName) .build(); } + @Transactional public FolderInfoDto updateFolder(Long folderId, String folderName) { Folder folder = folderRepository.findById(folderId).orElseThrow(() -> new DocumentException(