Created call api's in 2 steps and for update call

This commit is contained in:
rajesh
2024-08-28 01:52:25 +05:30
parent e7fa11f35e
commit 22e72f6cd4
20 changed files with 287 additions and 119 deletions

View File

@@ -149,4 +149,10 @@ public class UserDao {
log.info("Login successful for email: {}", loginReq.getEmail());
return jwtToken;
}
public UserEntity validateUser(Long userId) {
return userRepository.findById(userId)
.orElseThrow(() -> new ResourceNotFoundException(Status.VALIDATION_ERROR,
Translator.toLocale(GepafinConstant.USER_NOT_FOUND_MSG)));
}
}