From 18d2d1068e21ccede64370e956c506e2e1a19f8b Mon Sep 17 00:00:00 2001 From: dangnak2 <80161984+dangnak2@users.noreply.github.com> Date: Sun, 15 Oct 2023 03:36:46 +0900 Subject: [PATCH] =?UTF-8?q?[PDS-32]=20feat:=20=EC=95=84=EC=B9=B4=EC=9D=B4?= =?UTF-8?q?=EB=B9=99=20=EC=9E=90=EB=A3=8C=20=EC=A1=B0=ED=9A=8C=20http=20?= =?UTF-8?q?=EB=A9=94=EC=84=9C=EB=93=9C=20post=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../archiving/controller/ArchivingController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/PLADIALMArchiving/archiving/controller/ArchivingController.java b/src/main/java/com/example/PLADIALMArchiving/archiving/controller/ArchivingController.java index 19e67b6..39a00f0 100644 --- a/src/main/java/com/example/PLADIALMArchiving/archiving/controller/ArchivingController.java +++ b/src/main/java/com/example/PLADIALMArchiving/archiving/controller/ArchivingController.java @@ -3,12 +3,14 @@ import com.example.PLADIALMArchiving.archiving.dto.request.RegisterProjectReq; import com.example.PLADIALMArchiving.archiving.dto.request.SearchMaterialReq; import com.example.PLADIALMArchiving.archiving.dto.request.UploadMaterialReq; +import com.example.PLADIALMArchiving.archiving.dto.response.SearchMaterialRes; import com.example.PLADIALMArchiving.archiving.service.ArchivingService; import com.example.PLADIALMArchiving.global.resolver.Account; import com.example.PLADIALMArchiving.global.response.ResponseCustom; import com.example.PLADIALMArchiving.user.entity.User; import io.swagger.annotations.Api; import lombok.RequiredArgsConstructor; +import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.web.bind.annotation.*; @@ -46,8 +48,8 @@ public ResponseCustom uploadMaterial( /** * 자료목록을 조회 및 검색한다. */ - @GetMapping("/projects/{projectId}") - public ResponseCustom searchMaterial( + @PostMapping("/projects/{projectId}") + public ResponseCustom> searchMaterial( @PathVariable Long projectId, @RequestBody SearchMaterialReq searchMaterialReq, Pageable pageable