Skip to content
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

refactor: item_attribute의 name필드 이름을 option으로 변경, 컬럼 순서 변경 #60

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import jakarta.persistence.Embeddable
@Embeddable
data class ItemAttribute(
var optionId: Long,
var name: String,
var value: String,
var option: String,
var valueId: Long,
var value: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class ItemAttributeResponse(
fun from(attribute: ItemAttribute): ItemAttributeResponse {
return ItemAttributeResponse(
optionId = attribute.optionId,
name = attribute.name,
name = attribute.option,
value = attribute.value,
valueId = attribute.valueId
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ItemService(
attributes = optionValues.map { optionValue ->
ItemAttribute(
optionId = optionValue.productOption.productOptionId!!,
name = optionValue.productOption.optionName,
option = optionValue.productOption.optionName,
value = optionValue.value,
valueId = optionValue.optionValueId!!
)
Expand Down
Loading