init commit
This commit is contained in:
parent
f3223c5467
commit
6ed802ce88
13
src/main/kotlin/data/model/SneakersDTO.kt
Normal file
13
src/main/kotlin/data/model/SneakersDTO.kt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package org.example.data.model
|
||||||
|
|
||||||
|
data class SneakersDTO(
|
||||||
|
val productId: Int,
|
||||||
|
var productName: String,
|
||||||
|
var cost: String,
|
||||||
|
var count: Int,
|
||||||
|
var photo: String,
|
||||||
|
var text: String,
|
||||||
|
var favorite: Boolean
|
||||||
|
|
||||||
|
)
|
||||||
|
|
@ -48,7 +48,7 @@ class UserUseCaseImpl(private val userRepository: UserRepository): UserUseCase {
|
|||||||
checkNotNull(userProfile){"Пользователь не найден"}
|
checkNotNull(userProfile){"Пользователь не найден"}
|
||||||
userProfile.apply {
|
userProfile.apply {
|
||||||
phone = changeProfileRequest.phone
|
phone = changeProfileRequest.phone
|
||||||
address = changeProfileRequest.adress
|
address = changeProfileRequest.address
|
||||||
lastName = changeProfileRequest.lastname
|
lastName = changeProfileRequest.lastname
|
||||||
email = changeProfileRequest.email
|
email = changeProfileRequest.email
|
||||||
}
|
}
|
||||||
|
@ -5,5 +5,5 @@ class ChangeProfileRequest (
|
|||||||
val lastname: String,
|
val lastname: String,
|
||||||
val email: String,
|
val email: String,
|
||||||
val phone: String,
|
val phone: String,
|
||||||
val adress: String
|
val address: String
|
||||||
)
|
)
|
||||||
|
@ -108,7 +108,7 @@ class UserUI(private val userUseCase: UserUseCase) {
|
|||||||
userId = userAuthorized!!.userId,
|
userId = userAuthorized!!.userId,
|
||||||
email = email.toString(),
|
email = email.toString(),
|
||||||
phone = phone.toString(),
|
phone = phone.toString(),
|
||||||
adress = address.toString(),
|
address = address.toString(),
|
||||||
lastname = lastname.toString()
|
lastname = lastname.toString()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user