init
This commit is contained in:
parent
eb8cbbba10
commit
6f87c3d25b
@ -9,6 +9,19 @@ fun main() {
|
|||||||
val userRepository = UserRepositoryImpl()
|
val userRepository = UserRepositoryImpl()
|
||||||
val userUseCase = UserUseCaseImpl(userRepository)
|
val userUseCase = UserUseCaseImpl(userRepository)
|
||||||
val userUI = UserUI(userUseCase)
|
val userUI = UserUI(userUseCase)
|
||||||
|
while(true){
|
||||||
|
println("Выберите действие:")
|
||||||
|
println("1 - Регистрация")
|
||||||
|
println("2 - Авторизация")
|
||||||
|
println("3 - Изменить профиль")
|
||||||
|
println("4 - Изменить пароль")
|
||||||
|
val c = readln()
|
||||||
|
when(c){
|
||||||
|
"1"->userUI.registration()
|
||||||
|
"2"->userUI.authorize()
|
||||||
|
"3"->userUI.changeProfile()
|
||||||
|
"4"->userUI.changePassword()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user