Решённая проблема с 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 @NotBlank
private String login; private String login;
@NotNull @NotNull
private String role; private String role = "user";
@NotBlank @NotBlank
private String password; private String password;
@ -40,11 +40,6 @@ public class EntrysDataDto {
return role; return role;
} }
public void setRole(String role) {
role = "user";
this.role = role;
}
public String getPassword() { public String getPassword() {
return password; return password;
} }

View File

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