Skip to content

Commit

Permalink
[chore] : #8 패키지 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
1971123-seongmin committed Nov 13, 2024
1 parent ace6aa2 commit dca7009
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.sopt.and.data.remote.source

import org.sopt.and.domain.mapper.AuthMapper
import org.sopt.and.domain.model.user.LoginUserEntity
import org.sopt.and.domain.model.user.RegisterUserEntity
import org.sopt.and.domain.model.user.UserIdEntity
import org.sopt.and.domain.model.user.UserTokenEntity
import org.sopt.and.domain.model.auth.LoginUserEntity
import org.sopt.and.domain.model.auth.RegisterUserEntity
import org.sopt.and.domain.model.auth.UserIdEntity
import org.sopt.and.domain.model.auth.UserTokenEntity
import org.sopt.and.domain.repository.AuthRepository
import org.sopt.and.utils.TokenManager
import javax.inject.Inject
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/org/sopt/and/domain/mapper/AuthMapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import org.sopt.and.data.model.request.UserLoginRequestDto
import org.sopt.and.data.model.request.UserRegisterRequestDto
import org.sopt.and.data.model.response.UserLoginResponse
import org.sopt.and.data.model.response.UserRegisterResponse
import org.sopt.and.domain.model.user.LoginUserEntity
import org.sopt.and.domain.model.user.RegisterUserEntity
import org.sopt.and.domain.model.user.UserIdEntity
import org.sopt.and.domain.model.user.UserTokenEntity
import org.sopt.and.domain.model.auth.LoginUserEntity
import org.sopt.and.domain.model.auth.RegisterUserEntity
import org.sopt.and.domain.model.auth.UserIdEntity
import org.sopt.and.domain.model.auth.UserTokenEntity

object AuthMapper {
fun mapperToUserRegisterRequestDto(entity: RegisterUserEntity) = UserRegisterRequestDto(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.domain.model.user
package org.sopt.and.domain.model.auth

data class LoginUserEntity(
val username: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.domain.model.user
package org.sopt.and.domain.model.auth

data class RegisterUserEntity(
val username: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.domain.model.user
package org.sopt.and.domain.model.auth

data class UserIdEntity (
val no : Long
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.domain.model.user
package org.sopt.and.domain.model.auth

data class UserTokenEntity(
val token: String
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.sopt.and.domain.repository

import org.sopt.and.domain.model.user.LoginUserEntity
import org.sopt.and.domain.model.user.RegisterUserEntity
import org.sopt.and.domain.model.user.UserIdEntity
import org.sopt.and.domain.model.user.UserTokenEntity
import org.sopt.and.domain.model.auth.LoginUserEntity
import org.sopt.and.domain.model.auth.RegisterUserEntity
import org.sopt.and.domain.model.auth.UserIdEntity
import org.sopt.and.domain.model.auth.UserTokenEntity

interface AuthRepository {
suspend fun registerUser(userEntity: RegisterUserEntity): Result<UserIdEntity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.sopt.and.domain.usecase

import org.sopt.and.domain.model.user.LoginUserEntity
import org.sopt.and.domain.model.user.UserTokenEntity
import org.sopt.and.domain.model.auth.LoginUserEntity
import org.sopt.and.domain.model.auth.UserTokenEntity
import org.sopt.and.domain.repository.AuthRepository

class LoginUserUseCase(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.sopt.and.domain.usecase

import org.sopt.and.domain.model.user.RegisterUserEntity
import org.sopt.and.domain.model.user.UserIdEntity
import org.sopt.and.domain.model.auth.RegisterUserEntity
import org.sopt.and.domain.model.auth.UserIdEntity
import org.sopt.and.domain.repository.AuthRepository

class RegisterUserUseCase(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import org.sopt.and.GlobalApplication
import org.sopt.and.base.BaseViewModel
import org.sopt.and.domain.model.user.LoginUserEntity
import org.sopt.and.domain.model.auth.LoginUserEntity
import org.sopt.and.domain.usecase.LoginUserUseCase
import org.sopt.and.presentation.utils.UiEffect
import org.sopt.and.presentation.utils.UiEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package org.sopt.and.presentation.viewmodel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import org.sopt.and.R
import org.sopt.and.base.BaseViewModel
import org.sopt.and.domain.model.user.RegisterUserEntity
import org.sopt.and.domain.model.auth.RegisterUserEntity
import org.sopt.and.domain.usecase.RegisterUserUseCase
import org.sopt.and.presentation.utils.UiEffect
import org.sopt.and.presentation.utils.UiEvent
Expand Down

0 comments on commit dca7009

Please sign in to comment.