copy and paste service-a for add cqrs design
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
package com.example.mmad.testapp.event;
|
||||
|
||||
public class UserCreatedEvent {
|
||||
private final Long userId;
|
||||
private final String username;
|
||||
private final String email;
|
||||
|
||||
public UserCreatedEvent(Long userId, String username, String email) {
|
||||
this.userId = userId;
|
||||
this.username = username;
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user