diff options
Diffstat (limited to 'src/main/java/com/blog/web/dto/RegistrationDto.java')
| -rw-r--r-- | src/main/java/com/blog/web/dto/RegistrationDto.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/blog/web/dto/RegistrationDto.java b/src/main/java/com/blog/web/dto/RegistrationDto.java index ca9fed5..fcf5f90 100644 --- a/src/main/java/com/blog/web/dto/RegistrationDto.java +++ b/src/main/java/com/blog/web/dto/RegistrationDto.java @@ -1,5 +1,6 @@ package com.blog.web.dto; +import com.blog.web.models.UserEntity; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotEmpty; @@ -12,6 +13,18 @@ public class RegistrationDto { @NotEmpty private String password; + public RegistrationDto() {}; + + public RegistrationDto( + String username, + String email, + String password + ) { + this.username = username; + this.email = email; + this.password = password; + } + public Long getId() { return id; } |
