Skip to content

Commit

Permalink
hotfix: pick mock data를 위한 api 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwonsheep committed Dec 10, 2024
1 parent 520ab8a commit deb4120
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import techpick.api.application.pick.dto.PickSliceResponse;
import techpick.api.domain.pick.dto.PickResult;
import techpick.api.domain.pick.exception.ApiPickException;
import techpick.api.domain.pick.service.PickBulkService;
import techpick.api.domain.pick.service.PickSearchService;
import techpick.api.domain.pick.service.PickService;
import techpick.core.event.EventMessenger;
Expand All @@ -47,6 +48,7 @@ public class PickApiController {
private final PickService pickService;
private final PickApiMapper pickApiMapper;
private final PickSearchService pickSearchService;
private final PickBulkService pickBulkService;
private final EventMessenger eventMessenger;

@GetMapping
Expand Down Expand Up @@ -236,4 +238,11 @@ public ResponseEntity<Void> deletePick(@LoginUserId Long userId,
pickService.deletePick(pickApiMapper.toDeleteCommand(userId, request));
return ResponseEntity.noContent().build();
}

@PostMapping("/bulk")
@Operation(summary = "픽 10000개 insert", description = "픽 10000개 insert - 1회만 가능합니다.")
public ResponseEntity<Void> bulkInsertPick(@LoginUserId Long userId, @RequestParam Long folderId) {
pickBulkService.saveBulkPick(userId, folderId);
return ResponseEntity.ok().build();
}
}

0 comments on commit deb4120

Please sign in to comment.