CoolFace
Apppublic

sakthivikram/geo-location

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
RegisterRequest.java37 linesDownload Raw Back to dto
1package com.georeport.dto;2 3import jakarta.validation.constraints.Email;4import jakarta.validation.constraints.NotBlank;5import jakarta.validation.constraints.Size;6import lombok.*;7 8/**9 * DTO for user registration request.10 */11@Data12@NoArgsConstructor13@AllArgsConstructor14@Builder15public class RegisterRequest {16 17    @NotBlank(message = "Full name is required")18    @Size(min = 2, max = 100, message = "Full name must be between 2 and 100 characters")19    private String fullName;20 21    @NotBlank(message = "Email is required")22    @Email(message = "Please provide a valid email address")23    private String email;24 25    @NotBlank(message = "Password is required")26    @Size(min = 6, max = 100, message = "Password must be between 6 and 100 characters")27    private String password;28 29    @Size(max = 20, message = "Phone number must not exceed 20 characters")30    private String phone;31 32    private String address;33 34    @Size(max = 50, message = "Ward must not exceed 50 characters")35    private String ward;36}37