Steffen Nitschke
4 years ago
5 changed files with 67 additions and 15 deletions
-
1fh.fd.ci.server/src/main/java/de/fd/fh/server/user/UserId.java
-
19fh.fd.ci.server/src/main/java/de/fd/fh/server/user/UserService.java
-
14fh.fd.ci.server/src/main/java/de/fd/fh/server/user/events/ChangeUserNameEvent.java
-
10fh.fd.ci.server/src/main/java/de/fd/fh/server/user/web/ChangeUserRequest.java
-
38fh.fd.ci.server/src/test/java/de/fd/fh/server/user/UserServiceTest.java
@ -0,0 +1,14 @@ |
|||
package de.fd.fh.server.user.events; |
|||
|
|||
import de.fd.fh.server.user.UserId; |
|||
import lombok.Getter; |
|||
import lombok.RequiredArgsConstructor; |
|||
|
|||
@RequiredArgsConstructor |
|||
@Getter |
|||
public class ChangeUserNameEvent |
|||
{ |
|||
private final UserId userId; |
|||
|
|||
private final String newName; |
|||
} |
@ -1,13 +1,15 @@ |
|||
package de.fd.fh.server.user.web; |
|||
|
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Getter; |
|||
import lombok.RequiredArgsConstructor; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
@RequiredArgsConstructor |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
@Getter |
|||
public class ChangeUserRequest |
|||
{ |
|||
private final String name; |
|||
private String name; |
|||
|
|||
private final String password; |
|||
private String password; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue