copy and paste service-a for add cqrs design

This commit is contained in:
esmailian
2025-04-28 08:06:35 +03:30
parent 59cdcac476
commit f40f78cf8b
13 changed files with 196 additions and 2 deletions

View File

@ -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;
}
}