[issue - 65] add field role
@@ -2,10 +2,12 @@ package greencity.dto.user;
import greencity.constant.ValidationConstants;
import greencity.entity.User;
+import greencity.entity.enums.ROLE;
import greencity.entity.enums.UserStatus;
import java.time.LocalDateTime;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
@@ -35,5 +37,7 @@ public class UserForListDto {
@NotBlank(message = ValidationConstants.EMPTY_EMAIL)
private String email;
- private UserStatus userStatus;
+ @NotNull private UserStatus userStatus;
+
+ @NotNull private ROLE role;
}
