-
Notifications
You must be signed in to change notification settings - Fork 1
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 #421 from mash-up-kr/develop
develop to master
- Loading branch information
Showing
13 changed files
with
94 additions
and
33 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
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
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
11 changes: 11 additions & 0 deletions
11
...main/java/kr/mashup/branding/domain/schedule/exception/ScheduleNotUpdatableException.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,11 @@ | ||
package kr.mashup.branding.domain.schedule.exception; | ||
|
||
import kr.mashup.branding.domain.ResultCode; | ||
import kr.mashup.branding.domain.exception.BadRequestException; | ||
|
||
public class ScheduleNotUpdatableException extends BadRequestException { | ||
|
||
public ScheduleNotUpdatableException() { | ||
super(ResultCode.SCHEDULE_NOT_UPDATABLE); | ||
} | ||
} |
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
35 changes: 35 additions & 0 deletions
35
mashup-member/src/main/java/kr/mashup/branding/ui/schedule/response/LocationResponse.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,35 @@ | ||
package kr.mashup.branding.ui.schedule.response; | ||
|
||
import kr.mashup.branding.domain.schedule.Location; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class LocationResponse { | ||
|
||
private final Double latitude; | ||
private final Double longitude; | ||
private final String address; | ||
private final String placeName; | ||
private final String roadAddress; | ||
private final String detailAddress; | ||
|
||
public LocationResponse(Double latitude, Double longitude, String address, String placeName, String roadAddress, String detailAddress) { | ||
this.latitude = latitude; | ||
this.longitude = longitude; | ||
this.address = address; | ||
this.placeName = placeName; | ||
this.roadAddress = roadAddress; | ||
this.detailAddress = detailAddress; | ||
} | ||
|
||
public static LocationResponse from(Location location) { | ||
return new LocationResponse( | ||
location.getLatitude(), | ||
location.getLongitude(), | ||
location.getRoadAddress(), | ||
location.getDetailAddress(), | ||
location.getRoadAddress(), | ||
location.getDetailAddress() | ||
); | ||
} | ||
} |
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