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
1 change: 1 addition & 0 deletions src/main/java/com/kernellabs/kernellabs/domain/Work.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class Work {
private Long id;

private String name; // 장소명
private String imgUrl; // 이미지 주소

@Column(columnDefinition = "TEXT")
private String description; // 설명
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ public class SurveyResponse {
private String description; // 설명
private String type; // 공유 오피스/카페/스터디카페 등
private String address; // 주소
private String imgUrl;

public static SurveyResponse from(Work work) {
return new SurveyResponse(
work.getName(),
work.getDescription(),
work.getType(),
work.getAddress()
work.getAddress(),
work.getImgUrl()
);
}
}