-
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
Daniel Muremwa Mburu
committed
Aug 9, 2024
1 parent
06896b7
commit cc741c2
Showing
4 changed files
with
78 additions
and
5 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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/tyne/finance/core/dto/UserInformation.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,24 @@ | ||
package com.tyne.finance.core.dto; | ||
|
||
import com.tyne.finance.core.models.Currency; | ||
import lombok.Data; | ||
|
||
import java.sql.Timestamp; | ||
|
||
|
||
@Data | ||
public class UserInformation { | ||
private String username; | ||
|
||
private String firstName; | ||
|
||
private String lastName; | ||
|
||
private String email; | ||
|
||
private Timestamp lastLogin; | ||
|
||
private Timestamp dateJoined; | ||
|
||
private Currency currency; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/tyne/finance/core/mappers/UserInformationMapper.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,10 @@ | ||
package com.tyne.finance.core.mappers; | ||
|
||
import com.tyne.finance.core.dto.UserInformation; | ||
import com.tyne.finance.core.models.User; | ||
import org.mapstruct.Mapper; | ||
|
||
@Mapper(componentModel = "spring") | ||
public interface UserInformationMapper { | ||
UserInformation userToUserInformation(User user); | ||
} |