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