added login with otp ,verify otp and registred user

This commit is contained in:
Lincpay Tech
2025-11-27 14:44:21 +05:30
parent 72332d6f99
commit a001728c4f
8 changed files with 203 additions and 201 deletions
@@ -1,14 +1,23 @@
package com.billpaymentservice.bbps.dto.auth;
import com.billpaymentservice.bbps.dto.auth.UserDto;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AuthResponse {
private boolean success;
private String message;
private boolean userExists;
private UserDto user;
public AuthResponse() {}
private String token;
public AuthResponse(boolean success, String message, boolean userExists, UserDto user) {
this.success = success;
@@ -16,36 +25,10 @@ public class AuthResponse {
this.userExists = userExists;
this.user = user;
}
public AuthResponse(boolean success, String message, String token) {
this.success = success;
this.message = message;
this.token = token;
}
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public boolean isUserExists() {
return userExists;
}
public void setUserExists(boolean userExists) {
this.userExists = userExists;
}
public UserDto getUser() {
return user;
}
public void setUser(UserDto user) {
this.user = user;
}
}
@@ -9,6 +9,6 @@ public class RegisterRequest {
private String mobile;
private String name;
private String email;
private int age;
private String age;
}
@@ -14,7 +14,7 @@ public class UserDto {
private String mobile;
private String name;
private String email;
private int age;
private String age;
}