Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public class MeetupDetailResponse {
@Schema(description = "아이템 포스터 이미지 URL")
private String posterUrl;

@JsonProperty("web_thumbnail_url")
@Schema(description = "웹 썸네일 이미지 URL")
private String webThumbnailUrl;

@JsonProperty("instagram_url")
@Schema(description = "인스타그램 URL")
private String instagramUrl;
Expand Down Expand Up @@ -82,6 +86,7 @@ public MeetupDetailResponse(MeetupProject meetup, boolean isDetail) {
this.cardinal = meetup.getCardinal();
this.name = meetup.getName();
this.posterUrl = s3Url + meetup.getPosterUrl();
this.webThumbnailUrl = meetup.getWebThumbnailUrl();
this.logoUrl = s3Url + meetup.getLogoUrl();
this.oneLineIntro = meetup.getOneLineIntro();
this.instagramUrl = meetup.getInstagramUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public class MeetupProject {
@Column(name = "poster_url", nullable = false)
private String posterUrl;

@Column(name = "web_thumbnail_url")
private String webThumbnailUrl;

Comment on lines +44 to +46
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이전에 다 이렇게 돼있어서 통일성있게 @column(name=~~) 붙이는 게 여기서 좋긴한데 기본 안넣어도 기본 테이블 컬럼명 생성전략이 스네이크로 만들어줘서 없어도 넣은거랑 똑같이 작동할거에요!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넹 감사합니당 ~~ LGTM 첨 들어봐요 mz하네요

@Column(name = "instagram_url")
private String instagramUrl;

Expand Down Expand Up @@ -72,7 +75,7 @@ public class MeetupProject {

@Builder
public MeetupProject(int cardinal, String name, String intro, ProjectType type, String oneLineIntro,
String logoUrl, String posterUrl, String instagramUrl, String githubUrl, String appUrl,
String logoUrl, String posterUrl, String webThumbnailUrl, String instagramUrl, String githubUrl, String appUrl,
LocalDate startDate, LocalDate endDate, String teamName) {
this.cardinal = cardinal;
this.name = name;
Expand All @@ -81,6 +84,7 @@ public MeetupProject(int cardinal, String name, String intro, ProjectType type,
this.oneLineIntro = oneLineIntro;
this.logoUrl = logoUrl;
this.posterUrl = posterUrl;
this.webThumbnailUrl = webThumbnailUrl;
this.instagramUrl = instagramUrl;
this.githubUrl = githubUrl;
this.appUrl = appUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public class Tag {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long tagId;

private String name; // The actual tag name, e.g., "#지도", "#글쓰기"
@Column(nullable = false, unique = true)
private String name;

@ManyToMany(mappedBy = "tags")
private Set<CorporateProject> corporateProjects = new HashSet<>();
Expand Down
Loading