-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 링크 조회시에도 카테고리 리턴타입 변경 * style: api 엔드포인트 변경 * [BE] 개발(테스트) 서버와 프로덕션 서버 oauth secret분리 (#571) * fix: cors 오류 해결 * [BE] 잘못된 test yml 수정 * [BE] 개발(테스트) 서버와 프로덕션 서버 oauth secret분리 (#581) Co-authored-by: Redddy <[email protected]> --------- Co-authored-by: lemone <[email protected]> Co-authored-by: 김민종 <[email protected]>
- Loading branch information
1 parent
8c06b01
commit 2738bf4
Showing
8 changed files
with
20 additions
and
15 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
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
7 changes: 6 additions & 1 deletion
7
backend/src/main/java/site/coduo/referencelink/service/dto/CategoryCreateResponse.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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
package site.coduo.referencelink.service.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import site.coduo.referencelink.repository.CategoryEntity; | ||
|
||
@Schema(description = "카테고리 생성 응답") | ||
public record CategoryCreateResponse( | ||
@Schema(description = "카테고리 ID") | ||
Long id, | ||
String id, | ||
|
||
@Schema(description = "카테고리 값") | ||
String value | ||
) { | ||
|
||
public static CategoryCreateResponse from(final CategoryEntity category) { | ||
return new CategoryCreateResponse(String.valueOf(category.getId()), category.getCategoryName()); | ||
} | ||
} |
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