Skip to content

Commit

Permalink
[PDS-32] feat: 아카이빙 자료 조회 http 메서드 post 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dangnak2 committed Oct 14, 2023
1 parent 766d63c commit 18d2d10
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

Expand Down Expand Up @@ -46,8 +48,8 @@ public ResponseCustom<?> uploadMaterial(
/**
* 자료목록을 조회 및 검색한다.
*/
@GetMapping("/projects/{projectId}")
public ResponseCustom<?> searchMaterial(
@PostMapping("/projects/{projectId}")
public ResponseCustom<Page<SearchMaterialRes>> searchMaterial(
@PathVariable Long projectId,
@RequestBody SearchMaterialReq searchMaterialReq,
Pageable pageable
Expand Down

0 comments on commit 18d2d10

Please sign in to comment.