Решённая проблема с entrysData
This commit is contained in:
parent
3239674edf
commit
27e7d7df3f
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user