-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from OurMenu/feat/develop
Fix : feat/develop
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 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
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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/ourMenu/backend/domain/menu/dto/response/PlaceInfoDTO.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,20 @@ | ||
package com.ourMenu.backend.domain.menu.dto.response; | ||
|
||
import com.ourMenu.backend.domain.menu.domain.Place; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class PlaceInfoDTO { | ||
private String placeAddress; | ||
private String placeInfo; | ||
|
||
public static PlaceInfoDTO toDto(Place place){ | ||
return PlaceInfoDTO.builder() | ||
.placeAddress(place.getAddress()) | ||
.placeInfo(place.getInfo()) | ||
.build(); | ||
} | ||
} |