generated from AND-SOPT-ANDROID/and-sopt-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4b7e5e
commit fe87207
Showing
8 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...opt/and/data/dto/response/BaseResponse.kt → ...ava/org/sopt/and/data/dto/BaseResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.sopt.and.data.dto.response | ||
package org.sopt.and.data.dto | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package org.sopt.and.data.service | ||
|
||
import org.sopt.and.data.dto.request.SignUpRequest | ||
import org.sopt.and.data.dto.response.BaseResponse | ||
import org.sopt.and.data.dto.response.SignUpResponse | ||
import org.sopt.and.data.dto.BaseResponse | ||
import org.sopt.and.data.dto.response.SignUpResponseDto | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
internal interface UserService { | ||
@POST("user") | ||
suspend fun signUp( | ||
@Body request: SignUpRequest | ||
): BaseResponse<SignUpResponse> | ||
): BaseResponse<SignUpResponseDto> | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
.../java/org/sopt/and/domain/model/SignUp.kt → ...rg/sopt/and/domain/model/SignUpRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package org.sopt.and.domain.model | ||
|
||
data class SignUp( | ||
data class SignUpRequest( | ||
val userNumber: Int | ||
) |
4 changes: 2 additions & 2 deletions
4
domain/src/main/java/org/sopt/and/domain/repository/UserRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package org.sopt.and.domain.repository | ||
|
||
import org.sopt.and.domain.model.SignUp | ||
import org.sopt.and.domain.model.SignUpRequest | ||
import org.sopt.and.domain.model.User | ||
import org.sopt.and.domain.exception.Result | ||
|
||
interface UserRepository { | ||
fun saveUser(id: String, password: String) | ||
fun clearIdPassword() | ||
fun getId(): String | ||
suspend fun signUp(user: User): Result<SignUp> | ||
suspend fun signUp(user: User): Result<SignUpRequest> | ||
} |