feat: Model
This commit is contained in:
parent
ae7d965a6d
commit
c087081d25
2 changed files with 12 additions and 0 deletions
5
src/main/java/eu/ztsh/wymiana/model/Currency.java
Normal file
5
src/main/java/eu/ztsh/wymiana/model/Currency.java
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
package eu.ztsh.wymiana.model;
|
||||||
|
|
||||||
|
public record Currency(String symbol, double amount) {
|
||||||
|
|
||||||
|
}
|
7
src/main/java/eu/ztsh/wymiana/model/User.java
Normal file
7
src/main/java/eu/ztsh/wymiana/model/User.java
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
package eu.ztsh.wymiana.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public record User(String name, String surname, String pesel, Map<String, Currency> currencies) {
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue