Решённая проблема с entrysData

This commit is contained in:
DyCTaTOR 2024-04-16 12:22:17 +04:00
parent 3239674edf
commit 27e7d7df3f
2 changed files with 1 additions and 10 deletions

View File

@ -14,7 +14,7 @@ public class EntrysDataDto {
@NotBlank
private String login;
@NotNull
private String role;
private String role = "user";
@NotBlank
private String password;
@ -40,11 +40,6 @@ public class EntrysDataDto {
return role;
}
public void setRole(String role) {
role = "user";
this.role = role;
}
public String getPassword() {
return password;
}

View File

@ -43,10 +43,6 @@ public class EntrysDataEntity extends BaseEntity {
return role;
}
public void setRole(String role) {
this.role = role;
}
public DepartmentEntity getDepartment() {
return department;
}