dev add field locale for get info for view doc
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-15 10:49:44 +07:00
parent 59e9de2684
commit 0c373acc7f
5 changed files with 61 additions and 9 deletions
@@ -41,6 +41,13 @@ public class UserService {
return userRepository.save(user);
}
public String userEmailById(Long userId) {
User user = userRepository.findById(userId)
.orElseThrow(() -> new UserNotFoundException("User not found with id: " + userId));
return user.getEmail();
}
@Transactional
public UserDTO updateUser(UserRequest userRequest, User currentUser) {
User user = userRepository.findById(currentUser.getId())