Skip to content

Commit

Permalink
추가: 스티커 엔터티 속성 변경 및 controller 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosiee committed Aug 4, 2024
1 parent b122851 commit 3208e01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import java.util.List;

@Api(tags = "스티커 API")
@Api(tags = "Sticker - 스티커")
@RestController
@RequestMapping("/api/stickers")
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@NoArgsConstructor
@AllArgsConstructor
public class StickerRetrieveDto {
public Long id;
public String title;
public String content;
public String imageUrl;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3208e01

Please sign in to comment.