-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 카테고리 상세조회 할 때 회원 아이디로 조회되는 오류 해결 (#200) * [FEAT} 카테고리 계층 조회 구현 (#203) * feat: 카테고리 계층 조회 구현 * feat: review 후 수정
- Loading branch information
1 parent
c3feefe
commit 6aba27d
Showing
6 changed files
with
123 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
omocha-api/src/main/java/org/omocha/api/interfaces/CategoryApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package org.omocha.api.interfaces; | ||
|
||
import java.util.List; | ||
|
||
import org.omocha.api.common.response.ResultDto; | ||
import org.omocha.api.interfaces.dto.CategoryDto; | ||
import org.omocha.domain.auction.CategoryInfo; | ||
import org.springframework.http.ResponseEntity; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.media.Content; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
||
@Tag(name = "카테고리 API(CategoryController)", description = "카테고리 생성, 전체 조회, 계층 조회 API 입니다.") | ||
public interface CategoryApi { | ||
|
||
@Operation(summary = "카테고리 생성", description = "새로운 카테고리를 생성합니다.") | ||
@ApiResponses(value = { | ||
@ApiResponse(responseCode = "200", description = "경매가 성공적으로 생성되었습니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))), | ||
@ApiResponse(responseCode = "401", description = "인증되지 않은 사용자입니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))), | ||
@ApiResponse(responseCode = "500", description = "서버 오류가 발생했습니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))) | ||
}) | ||
ResponseEntity<ResultDto<CategoryDto.CategoryAddResponse>> categoryAdd( | ||
@Parameter(description = "카테고리 생성 조건", required = true) | ||
CategoryDto.CategoryAddRequest request | ||
); | ||
|
||
@Operation(summary = "카테고리 계층 조회", description = "카테고리 계층 목록을 조회합니다") | ||
@ApiResponses(value = { | ||
@ApiResponse(responseCode = "200", description = "성공적으로 경매 목록을 조회했습니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))), | ||
@ApiResponse(responseCode = "400", description = "잘못된 요청입니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))), | ||
@ApiResponse(responseCode = "500", description = "서버 오류가 발생했습니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))) | ||
}) | ||
ResponseEntity<ResultDto<List<CategoryInfo.CategoryResponse>>> categoryHierarchy( | ||
@Parameter(description = "카테고리 ID", required = true) | ||
Long categoryId | ||
); | ||
|
||
@Operation(summary = "카테고리 전체 조회", description = "카테고리 전체 리스트를 조회합니다.") | ||
@ApiResponses(value = { | ||
@ApiResponse(responseCode = "200", description = "경매 상세 정보 조회 성공", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))), | ||
@ApiResponse(responseCode = "400", description = "잘못된 요청입니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))), | ||
@ApiResponse(responseCode = "500", description = "서버 오류가 발생했습니다.", | ||
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ResultDto.class))) | ||
}) | ||
public ResponseEntity<ResultDto<List<CategoryInfo.CategoryResponse>>> categoryDetails(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters