-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT] 프로필 사진 변경 & 푸드트럭 등록에 필요한 서류 업로드를 위한 presigned URL 발급 api 구현 #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a23f8dc
3f8a8a7
e8d2229
9c0e9b2
1470a2d
4edc8e8
4c530a2
948dd84
39fc1fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,8 @@ | |
| import konkuk.chacall.global.common.dto.BaseResponse; | ||
| import konkuk.chacall.global.common.dto.CursorPagingRequest; | ||
| import konkuk.chacall.global.common.dto.CursorPagingResponse; | ||
| import konkuk.chacall.global.common.storage.dto.ImageRequest; | ||
| import konkuk.chacall.global.common.storage.dto.ImageResponse; | ||
| import konkuk.chacall.global.common.swagger.SwaggerResponseDescription; | ||
| import lombok.RequiredArgsConstructor; | ||
| import lombok.extern.slf4j.Slf4j; | ||
|
|
@@ -299,4 +301,17 @@ public BaseResponse<Void> createNewFoodTruck( | |
| ownerService.createNewFoodTruck(ownerId, request); | ||
| return BaseResponse.ok(null); | ||
| } | ||
|
|
||
| @Operation( | ||
| summary = "푸드트럭 관련 서류 업로드를 위한 presigned URL 발급", | ||
| description = "푸드트럭 관련 서류 업로드를 위한 presigned URL을 발급받습니다." | ||
| ) | ||
| @ExceptionDescription(SwaggerResponseDescription.OWNER_GET_FOOD_TRUCK_DOCUMENT_PRESIGEND_URL) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CI 컴파일 오류: SwaggerResponseDescription 상수 미존재 SwaggerResponseDescription.OWNER_GET_FOOD_TRUCK_DOCUMENT_PRESIGEND_URL 심볼을 찾을 수 없어 CI가 실패합니다. 상수명 오타(PRESIGNED) 여부 확인 후 하나를 선택해 주세요.
빠른 수정을 위한 예시(교체 가정): -@ExceptionDescription(SwaggerResponseDescription.OWNER_GET_FOOD_TRUCK_DOCUMENT_PRESIGEND_URL)
+@ExceptionDescription(SwaggerResponseDescription.OWNER_GET_FOOD_TRUCK_DOCUMENT_PRESIGNED_URL)
🧰 Tools🪛 GitHub Actions: CI with Gradle[error] 309-309: Cannot find symbol: SwaggerResponseDescription.OWNER_GET_FOOD_TRUCK_DOCUMENT_PRESIGEND_URL. 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 부분 한 번만 확인부탁드립니다~ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 1504 🏁 Script executed: Length of output: 451 🏁 Script executed: Length of output: 1112 @ksg1227 네, 확인했습니다! 문제 확인: 해결 방법: OWNER_GET_FOOD_TRUCK_DOCUMENT_PRESIGEND_URL(new LinkedHashSet<>(Set.of(
OWNER_NOT_FOUND,
INVALID_IMAGE_COUNT,
INVALID_FILE_EXTENSION
))),참고 사항:
기존 코드와의 일관성을 위해 🧬 Code Graph Analysis Results[src/main/java/konkuk/chacall/domain/owner/application/reservation/OwnerReservationService.java, lines 27-90] [src/main/java/konkuk/chacall/domain/owner/application/myfoodtruck/MyFoodTruckService.java, lines 30-144] [src/main/java/konkuk/chacall/domain/owner/application/OwnerService.java, lines 28-223]
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 어라 왜 CI가 실패하나 봤더니 이것 때문이었군요. 수정하겠습니다~ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| @PostMapping("/me/food-truck-documents/images") | ||
| public BaseResponse<ImageResponse> createFoodTruckDocumentPresignedUrls( | ||
| @Valid @RequestBody final ImageRequest request, | ||
| @Parameter(hidden = true) @UserId final Long ownerId | ||
| ) { | ||
| return BaseResponse.ok(ownerService.createFoodTruckDocumentPresignedUrls(request, ownerId)); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
@Validimport 사용 여부를 확인하세요.이 PR의 변경사항에서
@Valid어노테이션이 사용되는 것이 보이지 않습니다. 실제로 사용되지 않는다면 불필요한 import일 수 있습니다.다음 스크립트로 해당 어노테이션의 사용 여부를 확인하세요:
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 2396
🏁 Script executed:
Length of output: 99
jakarta.validation.Validimport를 제거하세요.파일의 223줄 전체를 검색한 결과,
@Valid어노테이션이 어디에도 사용되지 않습니다. 3번 줄의 import 문은 불필요하므로 삭제해야 합니다.🤖 Prompt for AI Agents