Skip to content

Commit

Permalink
✨ feat: 수신 롤링페이퍼 조회 개수 기본값 설정 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
loveysuby committed Sep 29, 2024
1 parent 76e6f1c commit 2199404
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,22 @@ public ToyouResponse<RollingPaperResponse> findById(@UserAuthentication Long use
public ToyouResponse<List<RollingPaperResponse>> findReceivedRollingPapers(@UserAuthentication Long userId,
@RequestParam Long groupId,
@RequestParam Long targetId,
@RequestParam Integer limit) {
@RequestParam(defaultValue = "10") int limit) {
return ToyouResponse.from(rollingPaperService.findReceivedRollingPapers(userId, groupId, targetId, limit));
}

@PostMapping("/users/{userId}/rollingpapers")
public ToyouResponse<Void> sendRollingPaper(@UserAuthentication Long RequestUserId,
@PathVariable(name = "userId") Long recipientUserId,
@RequestBody RollingPaperRequest rollingPaperRequest) {
@PathVariable(name = "userId") Long recipientUserId,
@RequestBody RollingPaperRequest rollingPaperRequest) {
rollingPaperService.sendRollingPaper(recipientUserId, rollingPaperRequest);
return ToyouResponse.noContent();
}

@PostMapping("/rollingpapers/{rollingPaperId}/generate-cover")
public ToyouResponse<Void> generateCoverImage(@UserAuthentication Long userId,
@PathVariable Long rollingPaperId, @RequestBody CoverRequest request) {
@PathVariable Long rollingPaperId,
@RequestBody CoverRequest request) {
rollingPaperService.generateCoverImageAndUpdateRollingPaper(request, rollingPaperId);
return ToyouResponse.noContent();
}
Expand Down

0 comments on commit 2199404

Please sign in to comment.