From 3208e01ac1c76f1e92f1af5719e46be827adda87 Mon Sep 17 00:00:00 2001 From: gabang2 Date: Sun, 4 Aug 2024 15:08:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80:=20=EC=8A=A4=ED=8B=B0?= =?UTF-8?q?=EC=BB=A4=20=EC=97=94=ED=84=B0=ED=8B=B0=20=EC=86=8D=EC=84=B1=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20controller=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/sticker/controller/StickerController.java | 2 +- .../backend/domain/sticker/dto/StickerRetrieveDto.java | 3 ++- .../project/backend/domain/sticker/entity/Sticker.java | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/project/backend/domain/sticker/controller/StickerController.java b/src/main/java/project/backend/domain/sticker/controller/StickerController.java index a9f224f..caa0a3d 100644 --- a/src/main/java/project/backend/domain/sticker/controller/StickerController.java +++ b/src/main/java/project/backend/domain/sticker/controller/StickerController.java @@ -13,7 +13,7 @@ import java.util.List; -@Api(tags = "스티커 API") +@Api(tags = "Sticker - 스티커") @RestController @RequestMapping("/api/stickers") @RequiredArgsConstructor diff --git a/src/main/java/project/backend/domain/sticker/dto/StickerRetrieveDto.java b/src/main/java/project/backend/domain/sticker/dto/StickerRetrieveDto.java index a158e2d..75033bf 100644 --- a/src/main/java/project/backend/domain/sticker/dto/StickerRetrieveDto.java +++ b/src/main/java/project/backend/domain/sticker/dto/StickerRetrieveDto.java @@ -8,6 +8,7 @@ @NoArgsConstructor @AllArgsConstructor public class StickerRetrieveDto { + public Long id; public String title; - public String content; + public String imageUrl; } diff --git a/src/main/java/project/backend/domain/sticker/entity/Sticker.java b/src/main/java/project/backend/domain/sticker/entity/Sticker.java index 3698626..9ccb6f1 100644 --- a/src/main/java/project/backend/domain/sticker/entity/Sticker.java +++ b/src/main/java/project/backend/domain/sticker/entity/Sticker.java @@ -6,10 +6,7 @@ import lombok.RequiredArgsConstructor; import project.backend.domain.common.entity.BaseEntity; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import javax.persistence.*; @Entity @Getter @@ -18,6 +15,9 @@ public class Sticker extends BaseEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long id; + public String title; + + @Column(length = 2048) public String imageUrl; @Builder