From c341da530ed3f099c22ce7c3cb133857d018ec0d Mon Sep 17 00:00:00 2001 From: Subi Hwang Date: Wed, 31 Jan 2024 14:18:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20color=EC=86=8D=EC=84=B1=EC=97=90=20image?= =?UTF-8?q?Url=20entity=20=EC=83=9D=EC=84=B1=20#40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oot/custom/color/dto/ColorListResponseDto.java | 3 +++ .../java/com/endlesshorses/oot/custom/color/entity/Color.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/main/java/com/endlesshorses/oot/custom/color/dto/ColorListResponseDto.java b/src/main/java/com/endlesshorses/oot/custom/color/dto/ColorListResponseDto.java index 891b71e..1d252d0 100644 --- a/src/main/java/com/endlesshorses/oot/custom/color/dto/ColorListResponseDto.java +++ b/src/main/java/com/endlesshorses/oot/custom/color/dto/ColorListResponseDto.java @@ -12,10 +12,13 @@ public class ColorListResponseDto { private String name; private String rgb; + private String imageUrl; + @Builder public ColorListResponseDto(Color color) { this.id = color.getId(); this.name = color.getName(); this.rgb = color.getRgb(); + this.imageUrl = color.getImageUrl(); } } diff --git a/src/main/java/com/endlesshorses/oot/custom/color/entity/Color.java b/src/main/java/com/endlesshorses/oot/custom/color/entity/Color.java index 50bd8dd..80f153e 100644 --- a/src/main/java/com/endlesshorses/oot/custom/color/entity/Color.java +++ b/src/main/java/com/endlesshorses/oot/custom/color/entity/Color.java @@ -19,6 +19,8 @@ public class Color { private String name; @Column(nullable = false) private String rgb; + @Column(nullable = false) + private String imageUrl; @OneToMany(mappedBy = "color") //읽기만 가능 private List results = new ArrayList<>();