-
Notifications
You must be signed in to change notification settings - Fork 0
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
11 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
8 changes: 8 additions & 0 deletions
8
userprofile-microservice/src/main/java/com/bilgeadam/mapper/UserProfileMapper.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,13 +1,21 @@ | ||
package com.bilgeadam.mapper; | ||
|
||
import com.bilgeadam.dto.response.DetailResponseDto; | ||
import com.bilgeadam.dto.response.SummaryResponseDto; | ||
import com.bilgeadam.repository.entity.UserProfile; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.ReportingPolicy; | ||
import org.mapstruct.factory.Mappers; | ||
|
||
import java.util.Optional; | ||
|
||
|
||
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE,componentModel = "spring") | ||
public interface UserProfileMapper { | ||
|
||
UserProfileMapper INSTANCE = Mappers.getMapper(UserProfileMapper.class); | ||
|
||
DetailResponseDto fromUserProfileToDetailResponseDto(final UserProfile profile); | ||
|
||
SummaryResponseDto fromUserProfileToSummaryResponseDto(final UserProfile userProfile); | ||
} |
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