Skip to content

Commit

Permalink
[Refactor] 게시글 등록 정상화
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed Jan 22, 2025
1 parent 9ff0db9 commit 8c16062
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public ResponseEntity<ResponseDto<Integer>> scrapPost(@AuthenticationPrincipal M
@GetMapping("")
public ResponseEntity<ResponseDto<ListResponseDto<PostListResponseDto>>> getAllPost(@RequestParam(required = false) String category, @RequestParam(required = false,defaultValue = "date") String sort
,@RequestParam(required = false,defaultValue = "1") @Min(1) int page,@AuthenticationPrincipal Member member ){
return ResponseEntity.ok(ResponseDto.of(postService.getAllPost(category, sort,page,member),"모든 게시글 가져오기 성공"));
return ResponseEntity.ok(ResponseDto.of(postService.getAllPost(category, sort,page),"모든 게시글 가져오기 성공"));
}


Expand Down Expand Up @@ -174,7 +174,7 @@ public ResponseEntity<ResponseDto<List<PostListResponseDto>>> getPostForMain(){
})
@GetMapping("/mobile")
public ResponseEntity<ResponseDto<List<PostListResponseDto>>> getPostForMobile(@RequestParam(required = false) Long lastPostId, @RequestParam(required = false) String category, @AuthenticationPrincipal Member member){
return ResponseEntity.ok(ResponseDto.of(postService.getPostForInf(lastPostId,category,member),"모바일용 게시글 리스트 가져오기 성공"));
return ResponseEntity.ok(ResponseDto.of(postService.getPostForInf(lastPostId,category),"모바일용 게시글 리스트 가져오기 성공"));
}

}

0 comments on commit 8c16062

Please sign in to comment.