init commit

This commit is contained in:
End3r 2025-01-27 16:19:43 +03:00
parent f3223c5467
commit 6ed802ce88
4 changed files with 16 additions and 3 deletions

View 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
)

View File

@ -48,7 +48,7 @@ class UserUseCaseImpl(private val userRepository: UserRepository): UserUseCase {
checkNotNull(userProfile){"Пользователь не найден"}
userProfile.apply {
phone = changeProfileRequest.phone
address = changeProfileRequest.adress
address = changeProfileRequest.address
lastName = changeProfileRequest.lastname
email = changeProfileRequest.email
}

View File

@ -5,5 +5,5 @@ class ChangeProfileRequest (
val lastname: String,
val email: String,
val phone: String,
val adress: String
val address: String
)

View File

@ -108,7 +108,7 @@ class UserUI(private val userUseCase: UserUseCase) {
userId = userAuthorized!!.userId,
email = email.toString(),
phone = phone.toString(),
adress = address.toString(),
address = address.toString(),
lastname = lastname.toString()
)