updated code
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
package net.gepafin.tendermanagement.model.request;
|
||||
|
||||
import jakarta.validation.constraints.Email;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserReq {
|
||||
|
||||
@NotBlank
|
||||
@Email
|
||||
private String email;
|
||||
@NotEmpty
|
||||
|
||||
private String password;
|
||||
@NotEmpty
|
||||
|
||||
private String confPassword;
|
||||
|
||||
private String firstName;
|
||||
@@ -22,7 +17,7 @@ public class UserReq {
|
||||
private String lastName;
|
||||
|
||||
private String phoneNumber;
|
||||
@NotNull
|
||||
|
||||
private Long roleId;
|
||||
|
||||
private String organization;
|
||||
@@ -32,5 +27,20 @@ public class UserReq {
|
||||
private String city;
|
||||
|
||||
private String country;
|
||||
|
||||
private String codiceFiscale;
|
||||
|
||||
private LocalDateTime dateOfBirth;
|
||||
private Boolean privacy;
|
||||
private Boolean terms;
|
||||
|
||||
private Boolean marketing;
|
||||
private Boolean offers;
|
||||
private Boolean thirdParty;
|
||||
|
||||
private String emailPec;
|
||||
|
||||
private String hubUuid;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user