-
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.
Browse files
Browse the repository at this point in the history
* feat: p6spy 적용 * refactor: mvc 아키텍처 -> 헥사고날 아키텍처 리팩토링 * feat: application.yml의 db 정보 수정 * feat: profile에 따른 설정 파일 참조되도록 개발
- Loading branch information
Showing
67 changed files
with
457 additions
and
318 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
8 changes: 4 additions & 4 deletions
8
...cation/port/SaveAccommodationUseCase.java → ...tion/port/CreateAccommodationUseCase.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.hotelJava.accommodation.application.port; | ||
|
||
import com.hotelJava.accommodation.dto.CreateAccommodationRequestDto; | ||
import com.hotelJava.accommodation.dto.CreateAccommodationResponseDto; | ||
import com.hotelJava.accommodation.dto.CreateAccommodationRequest; | ||
import com.hotelJava.accommodation.dto.CreateAccommodationResponse; | ||
|
||
public interface SaveAccommodationUseCase { | ||
public interface CreateAccommodationUseCase { | ||
|
||
CreateAccommodationResponseDto saveAccommodation(CreateAccommodationRequestDto command); | ||
CreateAccommodationResponse createAccommodation(CreateAccommodationRequest command); | ||
} |
4 changes: 2 additions & 2 deletions
4
app/src/main/java/com/hotelJava/accommodation/application/port/FindAccommodationQuery.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
4 changes: 2 additions & 2 deletions
4
...rc/main/java/com/hotelJava/accommodation/application/port/UpdateAccommodationUseCase.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.hotelJava.accommodation.application.port; | ||
|
||
import com.hotelJava.accommodation.dto.UpdateAccommodationRequestDto; | ||
import com.hotelJava.accommodation.dto.UpdateAccommodationRequest; | ||
|
||
public interface UpdateAccommodationUseCase { | ||
|
||
void updateAccommodation( | ||
Long accommodationId, UpdateAccommodationRequestDto updateAccommodationRequestDto); | ||
Long accommodationId, UpdateAccommodationRequest updateAccommodationRequest); | ||
} |
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
14 changes: 7 additions & 7 deletions
14
app/src/main/java/com/hotelJava/accommodation/util/AccommodationMapper.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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package com.hotelJava.accommodation.util; | ||
|
||
import com.hotelJava.accommodation.domain.Accommodation; | ||
import com.hotelJava.accommodation.dto.CreateAccommodationRequestDto; | ||
import com.hotelJava.accommodation.dto.CreateAccommodationResponseDto; | ||
import com.hotelJava.accommodation.dto.FindAccommodationResponseDto; | ||
import com.hotelJava.accommodation.dto.CreateAccommodationRequest; | ||
import com.hotelJava.accommodation.dto.CreateAccommodationResponse; | ||
import com.hotelJava.accommodation.dto.FindAccommodationResponse; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.Mapping; | ||
import org.mapstruct.ReportingPolicy; | ||
|
||
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE) | ||
public interface AccommodationMapper { | ||
|
||
Accommodation toEntity(CreateAccommodationRequestDto createAccommodationRequestDto); | ||
Accommodation toEntity(CreateAccommodationRequest createAccommodationRequest); | ||
|
||
@Mapping(source = "accommodation.picture", target = "pictureDto") | ||
@Mapping(source = "accommodation.rooms", target = "createRoomResponseDtos") | ||
CreateAccommodationResponseDto toCreateAccommodationResponseDto(Accommodation accommodation); | ||
@Mapping(source = "accommodation.rooms", target = "createRoomResponses") | ||
CreateAccommodationResponse toCreateAccommodationResponse(Accommodation accommodation); | ||
|
||
@Mapping(source = "accommodation.picture", target = "pictureDto") | ||
FindAccommodationResponseDto toFindAccommodationResponseDto( | ||
FindAccommodationResponse toFindAccommodationResponse( | ||
int minimumRoomPrice, Accommodation accommodation); | ||
} |
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
Oops, something went wrong.