init commit

This commit is contained in:
End3r 2025-01-28 11:19:34 +03:00
parent 6ed802ce88
commit eb8cbbba10
9 changed files with 59 additions and 8 deletions

View File

@ -9,11 +9,6 @@ fun main() {
val userRepository = UserRepositoryImpl()
val userUseCase = UserUseCaseImpl(userRepository)
val userUI = UserUI(userUseCase)
userUI.registration()
userUI.authorize()
userUI.changeProfile()
userUI.registration()
userUI.authorize()
userUI.changePassword()
}

View File

@ -0,0 +1,7 @@
package org.example.data.model
data class BasketDTO (
val userId: Int,
val shoesId: Int,
var count_items: Int,
)

View File

@ -0,0 +1,6 @@
package org.example.data.model
data class CategoryDTO(
val category_id: Int,
var category_name: String
)

View File

@ -0,0 +1,7 @@
package org.example.data.model
data class DiscountDTO (
val discount_id: Int,
var discount_name: String,
var discount_photo: String
)

View File

@ -0,0 +1,11 @@
package org.example.data.model
import org.w3c.dom.Text
data class NotificationDTO (
val notificationId: Int,
val userId: Int,
var notificationText: Text,
)

View File

@ -0,0 +1,11 @@
package org.example.data.model
import java.sql.Timestamp
data class OrderDTO (
val order_id: Int,
var order_sum: Double,
var delivery_cost: Double,
var order_date: Timestamp
)

View File

@ -0,0 +1,7 @@
package org.example.data.model
data class OrderItemDTO (
val order_id: Int,
val shoes_id: Int,
)

View File

@ -1,13 +1,14 @@
package org.example.data.model
import org.w3c.dom.Text
data class SneakersDTO(
val productId: Int,
var productName: String,
var cost: String,
var count: Int,
var photo: String,
var text: String,
var favorite: Boolean
var description: Text
)

View File

@ -0,0 +1,6 @@
package org.example.data.model
data class WishlistDTO (
val userId: Int,
val shoesId: Int
)