Skip to content

Commit

Permalink
[add] DTO에 응답값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
suhhyun524 committed Apr 19, 2024
1 parent bf8618b commit e1b0416
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ public class SimplePlaceResponseDTO {
private String name;
private Category category;
private String address;
private String xCoordinate;
private String yCoordinate;
private Long likeCount;
private String image;
private Long courseCount;

@Builder
private SimplePlaceResponseDTO(Long id, String name, Category category, String address, Long likeCount, String image, Long courseCount ) {
private SimplePlaceResponseDTO(Long id, String name, Category category, String address, String xCoordinate, String yCoordinate,Long likeCount, String image, Long courseCount ) {
this.id = id;
this.name = name;
this.category = category;
this.address = address;
this.xCoordinate = xCoordinate;
this.yCoordinate = yCoordinate;
this.image = image;
this.likeCount = likeCount;
this.courseCount = courseCount;
Expand All @@ -33,6 +37,8 @@ public static SimplePlaceResponseDTO of(Place place, Long likeCount, Long course
.name(place.getName())
.category(place.getCategory())
.address(place.getAddress())
.xCoordinate(place.getXCoordinate())
.yCoordinate(place.getYCoordinate())
.image(place.getImage())
.likeCount(likeCount)
.courseCount(courseCount)
Expand Down

0 comments on commit e1b0416

Please sign in to comment.