-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 개별 메뉴 조회 API 추가 및 menuUrl 필드 검증 강화 #42
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: "20251216_#41_\uBA54\uB274_url_api\uCD94\uAC00"
Changes from all commits
b6e146d
da25560
7b69120
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -15,68 +15,112 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import java.util.List; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Tag(name = "Menu Management", description = "메뉴 CURD 및 조회 API") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 메뉴 관리 시스템의 API 명세를 정의하는 인터페이스입니다. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 메뉴의 등록, 수정, 삭제 및 다양한 조건별 조회 기능을 제공합니다. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Tag(name = "Menu Management", description = "메뉴 CRUD 및 조회 API") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| public interface MenuControllerDocs { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "메뉴 전체 조회", description = "모든 메뉴 목록을 조회합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "조회 성공") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<List<MenuResponse>> getAllMenus(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 시스템에 등록된 모든 메뉴 목록을 조회합니다. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * * @return 메뉴 정보 리스트를 담은 ResponseEntity | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "메뉴 전체 조회", description = "모든 메뉴 목록을 조회합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "조회 성공") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<List<MenuResponse>> getAllMenus(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+25
to
+31
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. Javadoc 형식 오류를 수정하세요. Line 27에서 * 시스템에 등록된 모든 메뉴 목록을 조회합니다.
- * * @return 메뉴 정보 리스트를 담은 ResponseEntity
+ * @return 메뉴 정보 리스트를 담은 ResponseEntity
*/🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "카테고리별 메뉴 조회", description = "특정 카테고리 ID에 해당하는 메뉴 목록을 조회합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "조회 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "404", description = "해당 카테고리를 찾을 수 없습니다.", content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<List<MenuResponse>> getAllMenusByCategoryId( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "조회할 카테고리 ID", example = "1") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Long categoryId | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 고유 식별자를 통해 단일 메뉴의 상세 정보를 조회합니다. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * * @param menuId 조회하고자 하는 메뉴의 ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return 해당 메뉴의 상세 정보를 담은 ResponseEntity | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "단일 메뉴 상세 조회", description = "특정 ID에 해당하는 메뉴의 상세 정보를 조회합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "조회 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "404", description = "해당 메뉴를 찾을 수 없습니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<MenuResponse> getMenuById( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "조회할 메뉴 ID", example = "1") Long menuId | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+33
to
+46
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. Javadoc 형식 오류를 수정하세요. Line 35에서 * 고유 식별자를 통해 단일 메뉴의 상세 정보를 조회합니다.
- * * @param menuId 조회하고자 하는 메뉴의 ID
+ * @param menuId 조회하고자 하는 메뉴의 ID
* @return 해당 메뉴의 상세 정보를 담은 ResponseEntity그 외 API 문서화는 잘 작성되었습니다. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "식당별 메뉴 조회", description = "식당 ID에 해당하는 메뉴 목록을 조회합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<List<MenuResponse>> getAllMenusByCafeteriaId( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "조회할 식당 ID", example = "1") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Long cafeteriaId | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 특정 카테고리에 속한 모든 메뉴를 조회합니다. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * * @param categoryId 카테고리 고유 식별자 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return 해당 카테고리의 메뉴 리스트를 담은 ResponseEntity | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "카테고리별 메뉴 조회", description = "특정 카테고리 ID에 해당하는 메뉴 목록을 조회합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "조회 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "404", description = "해당 카테고리를 찾을 수 없습니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<List<MenuResponse>> getAllMenusByCategoryId( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "조회할 카테고리 ID", example = "1") Long categoryId | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+48
to
+61
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. Javadoc 형식 오류를 수정하세요. Line 50에서 * 특정 카테고리에 속한 모든 메뉴를 조회합니다.
- * * @param categoryId 카테고리 고유 식별자
+ * @param categoryId 카테고리 고유 식별자
* @return 해당 카테고리의 메뉴 리스트를 담은 ResponseEntity📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| summary = "신규 메뉴 생성 (관리자 전용)", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description = "새로운 메뉴를 등록합니다." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "201", description = "메뉴 생성 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "400", description = "입력값 오류(이름/가격/사용 가능)", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "409", description = "해당 카테고리에 이미 존재하는 메뉴입니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<MenuResponse> createMenu(MenuRequest menuRequest); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 특정 식당에서 제공하는 모든 메뉴를 조회합니다. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * * @param cafeteriaId 식당 고유 식별자 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return 해당 식당의 메뉴 리스트를 담은 ResponseEntity | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "식당별 메뉴 조회", description = "식당 ID에 해당하는 메뉴 목록을 조회합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "조회 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "404", description = "해당 식당을 찾을 수 없습니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<List<MenuResponse>> getAllMenusByCafeteriaId( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "조회할 식당 ID", example = "1") Long cafeteriaId | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+63
to
+76
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. Javadoc 형식 오류를 수정하세요. Line 65에서 * 특정 식당에서 제공하는 모든 메뉴를 조회합니다.
- * * @param cafeteriaId 식당 고유 식별자
+ * @param cafeteriaId 식당 고유 식별자
* @return 해당 식당의 메뉴 리스트를 담은 ResponseEntity📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| summary = "메뉴 정보 수정(관리자 전용)", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description = "특정 ID의 메뉴 정보를 수정합니다." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "메뉴 수정 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "400", description = "입력값 오류" , | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<MenuResponse> updateMenu( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "수정할 메뉴의 ID", example = "1") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Long menuId, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MenuUpdateRequest menuUpdateRequest | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 새로운 메뉴를 시스템에 등록합니다. (관리자 권한 필요) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * * @param menuRequest 생성할 메뉴의 상세 정보 DTO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return 생성된 메뉴 정보를 담은 ResponseEntity | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "신규 메뉴 생성 (관리자 전용)", description = "새로운 메뉴를 등록합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "201", description = "메뉴 생성 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "400", description = "입력값 오류(이름/가격 등)", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "409", description = "이미 존재하는 메뉴입니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<MenuResponse> createMenu(MenuRequest menuRequest); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+78
to
+91
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: #!/bin/bash
# Find MenuControllerDocs.java and check line 80 for the Javadoc issue
find . -name "MenuControllerDocs.java" -type f | head -5Repository: CampusTable/campus-table-be Length of output: 152 🏁 Script executed: #!/bin/bash
# Read the MenuControllerDocs.java file, focusing on lines 78-91
cat -n ./src/main/java/com/campustable/be/domain/menu/controller/MenuControllerDocs.java | sed -n '75,95p'Repository: CampusTable/campus-table-be Length of output: 1062 🏁 Script executed: #!/bin/bash
# Find and examine MenuController.java for security annotations on createMenu
find . -name "MenuController.java" -type fRepository: CampusTable/campus-table-be Length of output: 148 🏁 Script executed: #!/bin/bash
# Check MenuController.java for createMenu method and security annotations
cat -n ./src/main/java/com/campustable/be/domain/menu/controller/MenuController.java | grep -A 10 -B 5 "createMenu"Repository: CampusTable/campus-table-be Length of output: 850 🏁 Script executed: #!/bin/bash
# Search for security annotations in MenuController.java
rg -n "@PreAuthorize|@Secured|@RolesAllowed" ./src/main/java/com/campustable/be/domain/menu/controller/MenuController.javaRepository: CampusTable/campus-table-be Length of output: 53 🏁 Script executed: #!/bin/bash
# Check the entire MenuController.java file for any security-related annotations and class declaration
cat -n ./src/main/java/com/campustable/be/domain/menu/controller/MenuController.java | head -80Repository: CampusTable/campus-table-be Length of output: 3162 Javadoc 형식 오류를 수정하세요. Line 80에서 * 새로운 메뉴를 시스템에 등록합니다. (관리자 권한 필요)
- * * @param menuRequest 생성할 메뉴의 상세 정보 DTO
+ * @param menuRequest 생성할 메뉴의 상세 정보 DTO
* @return 생성된 메뉴 정보를 담은 ResponseEntityMenuController의 createMenu, updateMenu, deleteMenu 메서드에 보안 애노테이션이 누락되어 있습니다. 인터페이스(MenuControllerDocs)에서는 관리자 권한이 필요함을 명시하고 있으나, 실제 구현체(MenuController)에는 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| summary = "메뉴 삭제 (관리자 전용)", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description = "특정 ID의 메뉴를 삭제 합니다." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "204", description = "메뉴 삭제 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "404", description = "해당 메뉴를 찾을 수 없습니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<Void> deleteMenu( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "삭제할 메뉴의 ID", example = "1") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Long menuId | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 기존 메뉴 정보를 수정합니다. (관리자 권한 필요) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * * @param menuId 수정할 메뉴의 ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param menuUpdateRequest 수정할 내용이 담긴 DTO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return 수정 완료된 메뉴 정보를 담은 ResponseEntity | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "메뉴 정보 수정 (관리자 전용)", description = "특정 ID의 메뉴 정보를 수정합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "200", description = "메뉴 수정 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "400", description = "입력값 오류", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "404", description = "해당 메뉴를 찾을 수 없습니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<MenuResponse> updateMenu( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "수정할 메뉴 ID", example = "1") Long menuId, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MenuUpdateRequest menuUpdateRequest | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+93
to
+110
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. Javadoc 형식 오류를 수정하세요. Line 95에서 * 기존 메뉴 정보를 수정합니다. (관리자 권한 필요)
- * * @param menuId 수정할 메뉴의 ID
+ * @param menuId 수정할 메뉴의 ID
* @param menuUpdateRequest 수정할 내용이 담긴 DTO📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * 특정 메뉴를 시스템에서 삭제합니다. (관리자 권한 필요) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * * @param menuId 삭제할 메뉴의 ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return 삭제 성공 시 빈 바디를 담은 ResponseEntity (204 No Content) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Operation(summary = "메뉴 삭제 (관리자 전용)", description = "특정 ID의 메뉴를 삭제합니다.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponses({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "204", description = "메뉴 삭제 성공"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @ApiResponse(responseCode = "404", description = "해당 메뉴를 찾을 수 없습니다.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ResponseEntity<Void> deleteMenu( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Parameter(description = "삭제할 메뉴 ID", example = "1") Long menuId | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+112
to
+125
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. Javadoc 형식 오류를 수정하세요. Line 114에서 * 특정 메뉴를 시스템에서 삭제합니다. (관리자 권한 필요)
- * * @param menuId 삭제할 메뉴의 ID
+ * @param menuId 삭제할 메뉴의 ID
* @return 삭제 성공 시 빈 바디를 담은 ResponseEntity (204 No Content)📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.