-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
아이템 엔티티에 추가된 컬럼을 반영한다.
- Loading branch information
Showing
11 changed files
with
61 additions
and
25 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
14 changes: 14 additions & 0 deletions
14
api/src/main/java/com/dnd/sbooky/api/item/response/FindEquippedItemsResponse.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,14 @@ | ||
package com.dnd.sbooky.api.item.response; | ||
|
||
import com.dnd.sbooky.core.item.ItemType; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Schema(description = "내가 장착한 아이템 조회 응답 DTO") | ||
public record FindEquippedItemsResponse( | ||
@Schema(description = "아이템 타입에 따른 아이템 식별자 모음") Map<ItemType, List<String>> items) { | ||
public static FindEquippedItemsResponse from(Map<ItemType, List<String>> equippedItems) { | ||
return new FindEquippedItemsResponse(equippedItems); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
api/src/main/java/com/dnd/sbooky/api/item/response/FindItemResponse.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,10 @@ | ||
package com.dnd.sbooky.api.item.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record FindItemResponse( | ||
@Schema(description = "아이템 이름") String name, @Schema(description = "아이템 식별자") String code) { | ||
public static FindItemResponse from(String name, String code) { | ||
return new FindItemResponse(name, code); | ||
} | ||
} |
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
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