-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from endless-horses/fix#33-add-id
*ListResponseDto에 id 값 추가 close #33
- Loading branch information
Showing
5 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
25 changes: 13 additions & 12 deletions
25
src/main/java/com/endlesshorses/oot/custom/accessory/dto/AccessoryListResponseDto.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,24 +1,25 @@ | ||
package com.endlesshorses.oot.custom.accessory.dto; | ||
|
||
import com.endlesshorses.oot.custom.accessory.enity.Accessory; | ||
import jakarta.persistence.Column; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class AccessoryListResponseDto { | ||
private String name; | ||
private Long price; | ||
private String imageUrl; | ||
private String explanation; | ||
private Long id; | ||
private String name; | ||
private Long price; | ||
private String imageUrl; | ||
private String explanation; | ||
|
||
@Builder | ||
public AccessoryListResponseDto(Accessory accessory) { | ||
this.name = accessory.getName(); | ||
this.price = accessory.getPrice(); | ||
this.imageUrl = accessory.getImageUrl(); | ||
this.explanation = accessory.getExplanation(); | ||
} | ||
@Builder | ||
public AccessoryListResponseDto(Accessory accessory) { | ||
this.id = accessory.getId(); | ||
this.name = accessory.getName(); | ||
this.price = accessory.getPrice(); | ||
this.imageUrl = accessory.getImageUrl(); | ||
this.explanation = accessory.getExplanation(); | ||
} | ||
} |
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