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