feat: UserService implementation
This commit is contained in:
parent
c7ef32e28d
commit
9d6ba747a8
5 changed files with 36 additions and 11 deletions
|
@ -2,6 +2,7 @@ package eu.ztsh.wymiana;
|
|||
|
||||
import eu.ztsh.wymiana.data.entity.CurrencyEntity;
|
||||
import eu.ztsh.wymiana.data.entity.UserEntity;
|
||||
import eu.ztsh.wymiana.web.model.UserCreateRequest;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -22,6 +23,10 @@ public class EntityCreator {
|
|||
return new UserEntityBuilder();
|
||||
}
|
||||
|
||||
public static UserCreateRequest userRequest() {
|
||||
return new UserCreateRequest(Constants.NAME, Constants.SURNAME, Constants.PESEL, Constants.PLN);
|
||||
}
|
||||
|
||||
public static class UserEntityBuilder {
|
||||
|
||||
String name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue