feat: UserService TDD
This commit is contained in:
parent
3121caf8f7
commit
7207e9b256
2 changed files with 84 additions and 0 deletions
21
src/main/java/eu/ztsh/wymiana/service/UserService.java
Normal file
21
src/main/java/eu/ztsh/wymiana/service/UserService.java
Normal file
|
@ -0,0 +1,21 @@
|
|||
package eu.ztsh.wymiana.service;
|
||||
|
||||
import eu.ztsh.wymiana.model.User;
|
||||
import eu.ztsh.wymiana.web.model.UserCreateRequest;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@Service
|
||||
public class UserService {
|
||||
|
||||
public User create(@Valid UserCreateRequest request) {
|
||||
throw new IllegalStateException("Not impplemented yet");
|
||||
}
|
||||
|
||||
public Optional<User> get(String pesel) {
|
||||
throw new IllegalStateException("Not impplemented yet");
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue