55import com .somemore .user .domain .User ;
66import com .somemore .user .domain .UserCommonAttribute ;
77import com .somemore .user .domain .UserSetting ;
8- import com .somemore .user .dto .UserAuthInfoRequestDto ;
8+ import com .somemore .user .dto .UserAuthInfo ;
99import com .somemore .user .repository .user .UserRepository ;
1010import com .somemore .user .repository .usercommonattribute .UserCommonAttributeRepository ;
1111import com .somemore .user .repository .usersetting .UserSettingRepository ;
@@ -29,17 +29,17 @@ public class RegisterUserService implements RegisterUserUseCase {
2929
3030 @ Override
3131 public User registerOAuthUser (CommonOAuthInfo commonOAuthInfo , UserRole role ) {
32- UserAuthInfoRequestDto userAuthInfoRequestDto = UserAuthInfoRequestDto .createForOAuth (commonOAuthInfo .provider ());
33- return createAndRegisterUser (role , userAuthInfoRequestDto );
32+ UserAuthInfo userAuthInfo = UserAuthInfo .createForOAuth (commonOAuthInfo .provider ());
33+ return createAndRegisterUser (role , userAuthInfo );
3434 }
3535
3636 @ Override
37- public User registerLocalUser (UserAuthInfoRequestDto userAuthInfoRequestDto , UserRole role ) {
38- return createAndRegisterUser (role , userAuthInfoRequestDto );
37+ public User registerLocalUser (UserAuthInfo userAuthInfo , UserRole role ) {
38+ return createAndRegisterUser (role , userAuthInfo );
3939 }
4040
41- private User createAndRegisterUser (UserRole role , UserAuthInfoRequestDto userAuthInfoRequestDto ) {
42- User user = User .from (userAuthInfoRequestDto , role );
41+ private User createAndRegisterUser (UserRole role , UserAuthInfo userAuthInfo ) {
42+ User user = User .from (userAuthInfo , role );
4343 userRepository .save (user );
4444 UUID userId = user .getId ();
4545
0 commit comments