init commit
This commit is contained in:
parent
6ed802ce88
commit
eb8cbbba10
@ -9,11 +9,6 @@ fun main() {
|
|||||||
val userRepository = UserRepositoryImpl()
|
val userRepository = UserRepositoryImpl()
|
||||||
val userUseCase = UserUseCaseImpl(userRepository)
|
val userUseCase = UserUseCaseImpl(userRepository)
|
||||||
val userUI = UserUI(userUseCase)
|
val userUI = UserUI(userUseCase)
|
||||||
userUI.registration()
|
|
||||||
userUI.authorize()
|
|
||||||
userUI.changeProfile()
|
|
||||||
userUI.registration()
|
|
||||||
userUI.authorize()
|
|
||||||
userUI.changePassword()
|
|
||||||
|
|
||||||
}
|
}
|
7
src/main/kotlin/data/model/BasketDTO.kt
Normal file
7
src/main/kotlin/data/model/BasketDTO.kt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package org.example.data.model
|
||||||
|
|
||||||
|
data class BasketDTO (
|
||||||
|
val userId: Int,
|
||||||
|
val shoesId: Int,
|
||||||
|
var count_items: Int,
|
||||||
|
)
|
6
src/main/kotlin/data/model/CategoryDTO.kt
Normal file
6
src/main/kotlin/data/model/CategoryDTO.kt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package org.example.data.model
|
||||||
|
|
||||||
|
data class CategoryDTO(
|
||||||
|
val category_id: Int,
|
||||||
|
var category_name: String
|
||||||
|
)
|
7
src/main/kotlin/data/model/DiscountDTO.kt
Normal file
7
src/main/kotlin/data/model/DiscountDTO.kt
Normal 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
|
||||||
|
)
|
11
src/main/kotlin/data/model/NotificationDTO.kt
Normal file
11
src/main/kotlin/data/model/NotificationDTO.kt
Normal 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,
|
||||||
|
|
||||||
|
|
||||||
|
)
|
11
src/main/kotlin/data/model/OrderDTO.kt
Normal file
11
src/main/kotlin/data/model/OrderDTO.kt
Normal 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
|
||||||
|
|
||||||
|
)
|
7
src/main/kotlin/data/model/OrderItemDTO.kt
Normal file
7
src/main/kotlin/data/model/OrderItemDTO.kt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package org.example.data.model
|
||||||
|
|
||||||
|
data class OrderItemDTO (
|
||||||
|
val order_id: Int,
|
||||||
|
val shoes_id: Int,
|
||||||
|
|
||||||
|
)
|
@ -1,13 +1,14 @@
|
|||||||
package org.example.data.model
|
package org.example.data.model
|
||||||
|
|
||||||
|
import org.w3c.dom.Text
|
||||||
|
|
||||||
data class SneakersDTO(
|
data class SneakersDTO(
|
||||||
val productId: Int,
|
val productId: Int,
|
||||||
var productName: String,
|
var productName: String,
|
||||||
var cost: String,
|
var cost: String,
|
||||||
var count: Int,
|
var count: Int,
|
||||||
var photo: String,
|
var photo: String,
|
||||||
var text: String,
|
var description: Text
|
||||||
var favorite: Boolean
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
6
src/main/kotlin/data/model/WishlistDTO.kt
Normal file
6
src/main/kotlin/data/model/WishlistDTO.kt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package org.example.data.model
|
||||||
|
|
||||||
|
data class WishlistDTO (
|
||||||
|
val userId: Int,
|
||||||
|
val shoesId: Int
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user