-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
server/src/main/java/com/main36/picha/domain/attraction/dto/AttractionDetailResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.main36.picha.domain.attraction.dto; | ||
|
||
import com.main36.picha.domain.post.dto.PostResponseDto; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class AttractionDetailResponseDto { | ||
private long attractionId; | ||
private int likes; | ||
private boolean isVoted; | ||
private String attractionName; | ||
private String attractionDescription; | ||
private String attractionAddress; | ||
private String attractionImageUrl; | ||
private List<PostResponseDto> posts; | ||
|
||
@Builder | ||
public AttractionDetailResponseDto(long attractionId, int likes, String attractionName, String attractionDescription, String attractionAddress, String attractionImageUrl, List<PostResponseDto> posts) { | ||
this.attractionId = attractionId; | ||
this.likes = likes; | ||
this.attractionName = attractionName; | ||
this.attractionDescription = attractionDescription; | ||
this.attractionAddress = attractionAddress; | ||
this.attractionImageUrl = attractionImageUrl; | ||
this.posts = posts; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
server/src/main/java/com/main36/picha/domain/attraction/dto/AttractionLikesResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.main36.picha.domain.attraction.dto; | ||
|
||
import lombok.Data; | ||
import lombok.Setter; | ||
|
||
@Data | ||
public class AttractionLikesResponseDto { | ||
private Boolean isVoted; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters