Skip to content

Commit

Permalink
fix: create request dto for sumone recap api
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Nov 30, 2024
1 parent 6241417 commit b1958d0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.concurrent.atomic.AtomicInteger;
import kr.mafoo.photo.controller.dto.request.ObjectStoragePreSignedUrlRequest;
import kr.mafoo.photo.controller.dto.request.RecapCreateRequest;
import kr.mafoo.photo.controller.dto.request.SumoneRecapCreateRequest;
import kr.mafoo.photo.controller.dto.response.PreSignedUrlResponse;
import kr.mafoo.photo.controller.dto.response.RecapResponse;
import kr.mafoo.photo.controller.dto.response.SumoneAlbumResponse;
import kr.mafoo.photo.controller.dto.response.SumoneBulkUrlRequest;
import kr.mafoo.photo.controller.dto.request.SumoneBulkUrlRequest;
import kr.mafoo.photo.controller.dto.response.SumonePhotoResponse;
import kr.mafoo.photo.controller.dto.response.SumoneSummaryResponse;
import kr.mafoo.photo.domain.enums.AlbumType;
Expand Down Expand Up @@ -126,7 +126,7 @@ Mono<PreSignedUrlResponse> createPreSignedUrls(
Mono<RecapResponse> createRecapVideo(
@PathVariable String albumId,
@RequestBody
RecapCreateRequest request
SumoneRecapCreateRequest request
) {
return recapService.generateRecapVideo(request.fileUrls(), albumId, sumoneAlbumCommonMemberId)
.map(RecapResponse::fromDto);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kr.mafoo.photo.controller.dto.response;
package kr.mafoo.photo.controller.dto.request;

import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package kr.mafoo.photo.controller.dto.request;

import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;

@Schema(description = "리캡 비디오 생성 요청")
public record SumoneRecapCreateRequest(
@ArraySchema(
schema = @Schema(description = "파일 URL 목록"),
arraySchema = @Schema(example = "[\"file_url_1\", \"file_url_2\", \"file_url_3\"]")
)
List<String> fileUrls
) {
}

0 comments on commit b1958d0

Please sign in to comment.