lab2 some minor fixes in users

This commit is contained in:
Zakharov_Rostislav 2024-03-20 14:37:39 +04:00
parent ee6c906a48
commit bd96507bc7

View File

@ -8,7 +8,9 @@ public class UserDto {
private Long id;
@NotBlank
private String name;
@NotBlank
private String password;
@NotBlank
private String role;
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@ -36,6 +38,7 @@ public class UserDto {
this.password = password;
}
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
public String getRole() {
return role;
}