Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/39-report' into feature/…
Browse files Browse the repository at this point in the history
…42-member
  • Loading branch information
OJOJIN committed Jan 13, 2024
2 parents c7c5096 + 0fee7f9 commit 8a0e403
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@
@RequestMapping("/api/report")
@RestController
public class ReportController {

private final ReportService reportService;

@PostMapping("/post")
public ResponseEntity<SuccessResponse<?>> reportPost(@UserId Long userId,
@RequestBody @Valid PostReportRequestDto requestDto) {
public ResponseEntity<SuccessResponse<?>> reportPost(@UserId final Long userId,
@RequestBody @Valid final PostReportRequestDto requestDto) {
reportService.reportPost(userId, requestDto);
return SuccessResponse.created(null);
}

@PostMapping("/chat-room")
public ResponseEntity<SuccessResponse<?>> reportChatRoom(@UserId Long userId,
@RequestBody @Valid ChatRoomReportRequestDto requestDto) {
public ResponseEntity<SuccessResponse<?>> reportChatRoom(@UserId final Long userId,
@RequestBody @Valid final ChatRoomReportRequestDto requestDto) {
reportService.reportChatRoom(userId, requestDto);
return SuccessResponse.created(null);
}
Expand Down

0 comments on commit 8a0e403

Please sign in to comment.