-
Notifications
You must be signed in to change notification settings - Fork 0
97 요청 사항 반영 #98
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
The head ref may contain hidden characters: "97-\uC694\uCCAD-\uC0AC\uD56D-\uBC18\uC601"
97 요청 사항 반영 #98
Changes from all commits
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| package com.example.cp_main_be.domain.social.diaryimage.presentation; | ||
| package com.example.cp_main_be.domain.mission.diaryimage.presentation; | ||
|
|
||
| import com.example.cp_main_be.domain.social.diary.service.DiaryService; | ||
| import com.example.cp_main_be.domain.mission.diary.service.DiaryService; | ||
| import com.example.cp_main_be.global.common.ApiResponse; | ||
| import io.swagger.v3.oas.annotations.Operation; | ||
| import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
|
@@ -12,7 +12,7 @@ | |
|
|
||
| @RestController | ||
| @RequiredArgsConstructor | ||
| @RequestMapping("api/v1/diaries") | ||
| @RequestMapping("api/v1") | ||
|
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. 매핑 경로 슬래시 누락 및 경로 불일치로 인한 오동작 가능성 클래스 레벨 -@RequestMapping("api/v1")
+@RequestMapping("/api/v1")
...
- @PostMapping(value = "{diaryId}/images", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
+ @PostMapping(value = "/diaries/{diaryId}/images", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)Also applies to: 21-23 🤖 Prompt for AI Agents |
||
| @Tag(name = "일기 이미지 API", description = "일기의 이미지 관련 기능을 제공합니다") | ||
| public class DiaryImageController { | ||
|
|
||
|
|
@@ -31,7 +31,7 @@ public ResponseEntity<ApiResponse<Void>> saveDiaryImage( | |
| } | ||
|
|
||
| @Operation(summary = "일기 이미지 삭제", description = "일기 이미지를 삭제합니다") | ||
| @DeleteMapping("{diaryId}/images/{imageId}") | ||
| @DeleteMapping("/diaries/{diaryId}/images/{imageId}") | ||
| public ResponseEntity<ApiResponse<Void>> deleteDiaryImage( | ||
| @PathVariable Long diaryId, @PathVariable Long imageId) { | ||
| diaryService.deleteDiaryImage(diaryId, imageId); | ||
|
|
||
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.
JSON 키 호환성:
isPublic직렬화 키가public로 내려갈 수 있습니다.Lombok
@Getter의 boolean 접근자(isPublic()) 때문에 Jackson이 속성명을public으로 해석할 수 있습니다.DiaryInfoResponse에서는 이미@JsonProperty("isPublic")로 고정하셨으니, 본 DTO도 동일하게 맞춰야 프런트 계약이 깨지지 않습니다.📝 Committable suggestion
🤖 Prompt for AI Agents